|
1 | 1 | <p> |
2 | 2 | You are receiving this automated email because you are a curator of <%= @provider.title %> on <%= TeSS::Config.site['title_short'] %>. |
3 | 3 | </p> |
4 | | -<% if @events.count.positive? %> |
| 4 | + |
| 5 | +<p> |
| 6 | + <strong>New events:</strong> |
| 7 | +</p> |
| 8 | + |
| 9 | +<% if @new_events.count.positive? %> |
5 | 10 | <p> |
6 | 11 | If any of these events are incorrect or should not be shown, please follow the link to change them.<br/> |
7 | 12 | If an event should not be shown, disable it on the edit page instead of deleting it to prevent rescraping.<br/> |
8 | 13 | If an event needs changes, lock the changed fields to prevent your changes from being overwritten by the scraper.<br/> |
9 | 14 | </p> |
10 | 15 |
|
11 | | - <% @events.each do |event| %> |
| 16 | + <% @new_events.each do |event| %> |
12 | 17 | <p> |
13 | 18 | <%= link_to event.title, event %><br/> |
14 | 19 | <strong>description:</strong> <%= event.description %><br/> |
|
24 | 29 | There were no new events this week. |
25 | 30 | </p> |
26 | 31 | <% end %> |
| 32 | + |
| 33 | +<p> |
| 34 | + <strong>Stale events:</strong> |
| 35 | +</p> |
| 36 | + |
| 37 | +<% if @stale_events.count.positive? %> |
| 38 | + <p> |
| 39 | + These events have not been updated/found by the <%= TeSS::Config.site['title_short'] %> recently.<br/> |
| 40 | + If all events for <%= @provider.title %> are stale, the source might have changed, breaking the <%= TeSS::Config.site['title_short'] %> scraper.<br/> |
| 41 | + If another duplicate of this event was made, maybe the address to the event page was changed.<br/> |
| 42 | + </p> |
| 43 | + |
| 44 | + <% @stale_events.each do |event| %> |
| 45 | + <p> |
| 46 | + <%= link_to event.title, event %><br/> |
| 47 | + <strong>description:</strong> <%= event.description %><br/> |
| 48 | + <strong>start:</strong> <%= event.start %><br/> |
| 49 | + <strong>end:</strong> <%= event.end %><br/> |
| 50 | + <strong>venue:</strong> <%= event.venue %><br/> |
| 51 | + <strong>show:</strong> <%= event.visible %><br/> |
| 52 | + </p> |
| 53 | + |
| 54 | + <% end %> |
| 55 | +<% else %> |
| 56 | + <p> |
| 57 | + There were no stale events this week. |
| 58 | + </p> |
| 59 | +<% end %> |
0 commit comments