diff options
author | Daniel Friesel <derf@finalrewind.org> | 2015-06-05 10:41:46 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2015-06-05 10:41:46 +0200 |
commit | 1725719f07c99e7de67fa6b2981d060c1a385d81 (patch) | |
tree | 7689b68cff7f1b4ab10e37ea5c58985a119bd051 /templates | |
parent | fecbabe64ddf3dd552ff467a371dc504c3d8c251 (diff) |
clean template: indicate changed platforms
Diffstat (limited to 'templates')
-rw-r--r-- | templates/clean.html.ep | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/templates/clean.html.ep b/templates/clean.html.ep index 61ee6d6..2eb63ea 100644 --- a/templates/clean.html.ep +++ b/templates/clean.html.ep @@ -71,7 +71,7 @@ % elsif (defined $departure->{delay} and $departure->{delay} > 0) { <div class="minfo">+<%= $departure->{delay} %></div> % } - </div> + </div> <!-- mheader --> % if (not $departure->{is_cancelled}) { <div class="timeinfo"> % if ($departure->{sched_arrival}) { @@ -138,7 +138,7 @@ % } </ul> % } - </span> + </span> <!-- moreinfo --> % if ($departure->{info} and length $departure->{info}) { <span class="info"> %= $departure->{info} @@ -171,7 +171,13 @@ % } % } % } - <span class="platform <%= $extraclasses %>"> +% if ($departure->{scheduled_platform} and $departure->{platform} and +% $departure->{scheduled_platform} ne $departure->{platform}) { + <span class="platform changed-platform"> +% } +% else { + <span class="platform"> +% } %= $departure->{platform} </span> </span> |