diff options
author | Daniel Friesel <derf@finalrewind.org> | 2015-08-24 13:49:50 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2015-08-24 13:49:50 +0200 |
commit | 46464a5ecf3845b8dd3e8b77d748eb2266d6669a (patch) | |
tree | f2310562663e5022915a9e03882c285c9c5ee492 /templates/clean.html.ep | |
parent | bab0e1e7e6e94f1bb24354551522ad9eb111a13e (diff) |
infoscreen template: Improve RIS support
Diffstat (limited to 'templates/clean.html.ep')
-rw-r--r-- | templates/clean.html.ep | 42 |
1 files changed, 37 insertions, 5 deletions
diff --git a/templates/clean.html.ep b/templates/clean.html.ep index 9b36f45..a05cc08 100644 --- a/templates/clean.html.ep +++ b/templates/clean.html.ep @@ -51,13 +51,17 @@ % } <div class="moreinfo"> <div class="mheader"> - <span class="train-line"><%= $departure->{train_type} // q{???} %></span><!-- - --><span class="train-line"><%= $departure->{train_line} // q{} %></span> -% if ($departure->{train_line}) { - <span class="train-no"><%= $departure->{train_no} // q{???} %></span> +% if ($departure->{train_no} or $departure->{line_no}) { + <span class="train-line"><%= $departure->{train_type} // q{???} %></span> +% if ($departure->{train_line}) { + <span class="train-no"><%= $departure->{train_no} // q{???} %></span> +% } +% else { + <span class="train-line"><%= $departure->{train_no} // q{???} %></span> +% } % } % else { - <span class="train-line"><%= $departure->{train_no} // q{???} %></span> + <span class="train-line"><%= $departure->{train} // q{???} %></span> % } % if ($departure->{origin}) { : @@ -88,6 +92,12 @@ % } <br/> % } +% if (not ($departure->{sched_arrival} or $departure->{sched_departure})) { + Abfahrt: <%= $departure->{time} %> +% if ($departure->{delay}) { + (heute +<%= $departure->{delay} %>) +% } +% } </div> <!-- timeinfo --> % } % if ($departure->{route_post_diff} and @{$departure->{route_post_diff}}) { @@ -113,6 +123,25 @@ % } </div> <!-- mroute --> % } +% elsif ($departure->{route_timetable}) { + <div class="mroute"> + Über: +% my $first = 0; +% for my $stop (@{$departure->{route_timetable}}) { +% my ($time, $name) = @{$stop}; +% if ($first++) { + <span class="separator">–</span> +% } + <span class="generic-stop"><%= $time %></span> +% if ($self->is_important($name)) { + <span class="important-stop"><%= $name %></span> +% } +% else { + <span class="generic-stop"><%= $name %></span> +% } +% } + </div> <!-- mroute --> +% } % if ($departure->{moreinfo} and @{$departure->{moreinfo}}) { Meldungen: <ul> @@ -136,6 +165,9 @@ </span> </li> % } +% if ($departure->{route_info}) { + <li><%= $departure->{route_info} %></li> +% } </ul> % } </div> <!-- moreinfo --> |