summaryrefslogtreecommitdiff
path: root/templates/departures.html.ep
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2022-11-21 20:02:18 +0100
committerDaniel Friesel <derf@finalrewind.org>2022-11-21 20:02:18 +0100
commit731eb7eb990f366872a2774dc4119051b8285ad0 (patch)
tree260ea5d04fcf7126b86d532acef50454ddc5e6f6 /templates/departures.html.ep
parent77292c938c2c0c9c655bafd5db1183224a7a6d8d (diff)
indicate hidden departures in station board
Diffstat (limited to 'templates/departures.html.ep')
-rw-r--r--templates/departures.html.ep8
1 files changed, 7 insertions, 1 deletions
diff --git a/templates/departures.html.ep b/templates/departures.html.ep
index 35b5cfd..25e752a 100644
--- a/templates/departures.html.ep
+++ b/templates/departures.html.ep
@@ -97,7 +97,13 @@
<%= $result->destination %>
</a>
</td>
- <td class="<%= $td_class %>"><%= $result->departure->strftime('%H:%M') %>
+ <td class="<%= $td_class %>">
+ % if ($result->departure_hidden) {
+ (<%= $result->departure->strftime('%H:%M') %>)
+ % }
+ % else {
+ %= $result->departure->strftime('%H:%M')
+ % }
% if ($result->departure_delay) {
(<%= sprintf('%+d', $result->departure_delay) %>)
% }