summaryrefslogtreecommitdiff
path: root/templates/clean.html.ep
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2017-12-29 23:37:58 +0100
committerDaniel Friesel <derf@finalrewind.org>2017-12-29 23:37:58 +0100
commitab94c51e92e8b5cb29b1c63cdd6781bd5e258b12 (patch)
tree3c435c3b6b32cb7012f2c39d5c5d364bdb56fa19 /templates/clean.html.ep
parent5109d2a4ca68863a22adfac92627a38a79e49993 (diff)
Add detailed mode. For now, it only shows train numbers
Diffstat (limited to 'templates/clean.html.ep')
-rw-r--r--templates/clean.html.ep8
1 files changed, 8 insertions, 0 deletions
diff --git a/templates/clean.html.ep b/templates/clean.html.ep
index 61f6db9..3f6bcd0 100644
--- a/templates/clean.html.ep
+++ b/templates/clean.html.ep
@@ -50,6 +50,14 @@
%= $departure->{train}
% }
</div>
+% if (param('detailed')) {
+% if ($departure->{train_line} and $departure->{train_no}
+% and $departure->{train_line} ne $departure->{train_no}) {
+ <div class="extra_trainno">
+%= $departure->{train_no}
+ </div>
+% }
+% }
% if (@{$departure->{replaced_by}} or @{$departure->{replacement_for}}) {
<div class="lineinfo">
% if (@{$departure->{replaced_by}}) {