diff options
author | Daniel Friesel <derf@finalrewind.org> | 2016-03-27 12:00:08 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2016-03-27 12:00:08 +0200 |
commit | afb9ece81952570459c4757bf27693f71e0e3762 (patch) | |
tree | cfb8c68304fcf7c4bf5c80612369ad598753bc74 /templates | |
parent | ecdb462bbfc5393056b66d41b9a502d334bf5415 (diff) |
show line and train number in IRIS detail header
Diffstat (limited to 'templates')
-rw-r--r-- | templates/clean.html.ep | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/templates/clean.html.ep b/templates/clean.html.ep index 538102f..fb1463f 100644 --- a/templates/clean.html.ep +++ b/templates/clean.html.ep @@ -21,7 +21,7 @@ % else { <li> % } -% my $linetype = q{}; +% my $linetype = 'bahn'; % if ( $departure->{train_type} eq 'S' ) { % $linetype = 'sbahn'; % } @@ -51,24 +51,25 @@ % } <div class="moreinfo"> <div class="mheader"> -% if ($departure->{train_no} or $departure->{line_no}) { - <span class="train-line"><%= $departure->{train_type} // q{???} %></span> + <div> +% if ($departure->{train_no} or $departure->{train_line}) { + <span class="train-line <%= $linetype %>"><%= $departure->{train_type} %> + <%= $departure->{train_line} // $departure->{train_no} %></span> % if ($departure->{train_line}) { - <span class="train-no"><%= $departure->{train_no} // q{???} %></span> -% } -% else { - <span class="train-line"><%= $departure->{train_no} // q{???} %></span> + <span class="train-no"><%= $departure->{train_no} %></span> % } % } % else { <span class="train-line"><%= $departure->{train} // q{???} %></span> % } + </div> + <div> % if ($departure->{origin}) { - : <span class="train-origin"><%= $departure->{origin} %></span> + → % } - → <span class="train-dest"><%= $departure->{destination} // q{???} %></span> + </div> % if ($departure->{is_cancelled}) { <div class="minfo">Fahrt fällt aus</div> % } |