summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2021-03-19 21:35:17 +0100
committerDaniel Friesel <derf@finalrewind.org>2021-03-19 21:35:17 +0100
commitc0c77e9020b0a0700da55b170d03877031fd57f6 (patch)
tree9e30f2ff448e689c947624d1f02cb67450efa951 /templates
parentb0d3664b35f6288c2b0bfb273b1430a87d361510 (diff)
details: show early arrivals in green3.10.10
early departures will still be red
Diffstat (limited to 'templates')
-rw-r--r--templates/_train_details.html.ep7
-rw-r--r--templates/layouts/app.html.ep2
-rw-r--r--templates/layouts/legacy.html.ep2
3 files changed, 8 insertions, 3 deletions
diff --git a/templates/_train_details.html.ep b/templates/_train_details.html.ep
index e1f242f..6b3e1a7 100644
--- a/templates/_train_details.html.ep
+++ b/templates/_train_details.html.ep
@@ -55,7 +55,12 @@
% }
% elsif ($departure->{arrival}) {
% if ($departure->{arrival} ne $departure->{sched_arrival}) {
- An: <span class="minfo"><%= $departure->{arrival} %></span>
+ % if ($departure->{delay} < 0) {
+ An: <span class="undelay"><%= $departure->{arrival} %></span>
+ % }
+ % else {
+ An: <span class="minfo"><%= $departure->{arrival} %></span>
+ % }
<br/>Plan: <%= $departure->{sched_arrival} %>
% }
% else {
diff --git a/templates/layouts/app.html.ep b/templates/layouts/app.html.ep
index 83d425c..78f8ebf 100644
--- a/templates/layouts/app.html.ep
+++ b/templates/layouts/app.html.ep
@@ -18,7 +18,7 @@
<meta http-equiv="refresh" content="<%= $self->stash('refresh_interval') %>"/>
% }
- % my $av = 'v45'; # asset version
+ % my $av = 'v46'; # asset version
% if (session('theme') and session('theme') eq 'dark' or param('dark')) {
%= stylesheet "/static/${av}/css/dark.min.css", id => 'theme'
% }
diff --git a/templates/layouts/legacy.html.ep b/templates/layouts/legacy.html.ep
index 6d9c189..448315e 100644
--- a/templates/layouts/legacy.html.ep
+++ b/templates/layouts/legacy.html.ep
@@ -17,7 +17,7 @@
<meta http-equiv="refresh" content="<%= $self->stash('refresh_interval') %>"/>
% }
- % my $av = 'v45'; # asset version
+ % my $av = 'v46'; # asset version
%= stylesheet "/static/${av}/css/default.css"
%= stylesheet "/static/${av}/css/material-icons.css"
%= stylesheet "/static/${av}/css/jquery-ui.min.css"