summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2015-06-06 20:42:49 +0200
committerDaniel Friesel <derf@finalrewind.org>2015-06-06 20:42:49 +0200
commit02c43e825455a060557e7c31479f8912238e6307 (patch)
tree7ba2707ac2ffbc6f8ede99daba5c2199b0e57d1e /templates
parenta31eedef24b0c14aa0898bfa8a5ad949cae58dc3 (diff)
infoscreen: import moreinfo popup
Diffstat (limited to 'templates')
-rw-r--r--templates/infoscreen.html.ep35
1 files changed, 35 insertions, 0 deletions
diff --git a/templates/infoscreen.html.ep b/templates/infoscreen.html.ep
index acf5140..e87cc5e 100644
--- a/templates/infoscreen.html.ep
+++ b/templates/infoscreen.html.ep
@@ -9,6 +9,7 @@
%= stylesheet '/infoscreen.css'
%= javascript '/jquery-2.1.1.min.js'
+ %= javascript '/collapse.js'
</head>
<body>
@@ -37,6 +38,40 @@
<span class="line <%= $linetype %>">
%= $departure->line
</span> <!-- line -->
+ <span class="moreinfo">
+ <div class="mheader">
+ <span class="train-line"><%= $departure->line %></span>
+ :
+ <span class="train-route">
+% if ($departure->can('lineref') and $departure->lineref) {
+%= $departure->lineref->route
+% }
+% elsif ($departure->can('route_pre') and $departure->can('route_post')) {
+% if ($departure->route_pre) {
+%= ($departure->route_pre)[0]->{stop}
+% }
+% if ($departure->route_post) {
+% ($departure->route_post)[-1]->{stop}
+% }
+% }
+ </span> <!-- train-route -->
+ </div> <!-- mheader -->
+% if ($departure->can('route_pre')) {
+ Fahrplan:
+ <ul>
+% for my $stop ($departure->route_pre) {
+ <li><%= $stop->{dep_time} %> <%= $stop->{stop} %></li>
+% }
+ </ul>
+% }
+% if ($departure->can('route_post')) {
+ <ul>
+% for my $stop ($departure->route_post) {
+ <li><%= $stop->{arr_time} %> <%= $stop->{stop} %></li>
+% }
+ </ul>
+% }
+ </span> <!-- moreinfo -->
<span class="route">
% if ($departure->can('route_interesting') and $departure->route_interesting) {
%= join(' - ', map { $_->{stop_suf} } ($departure->route_interesting));