summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2015-08-13 22:27:52 +0200
committerDaniel Friesel <derf@finalrewind.org>2015-08-13 22:27:52 +0200
commit65634e360e73592369616093ce5b49da38f28796 (patch)
tree17b96994e811f8ac9a729a8a73a3aa13b00c0e03 /templates
parent146f9df71bfb6f883ba557510dc282458348e260 (diff)
parent9bee75d432365d44af46f5d500f7d210b867cc18 (diff)
Merge branch 'master' of lastlight:var/git_root/vrr-fakedisplay
Diffstat (limited to 'templates')
-rw-r--r--templates/exception.html.ep2
-rw-r--r--templates/infoscreen.html.ep23
-rw-r--r--templates/main.html.ep6
-rw-r--r--templates/not_found.html.ep2
4 files changed, 21 insertions, 12 deletions
diff --git a/templates/exception.html.ep b/templates/exception.html.ep
index 18a1402..ca66d7c 100644
--- a/templates/exception.html.ep
+++ b/templates/exception.html.ep
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
- <title>vrr-fakedisplay</title>
+ <title>vrr-infoscreen</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
%= stylesheet '/main.css'
diff --git a/templates/infoscreen.html.ep b/templates/infoscreen.html.ep
index c20589d..4a4f309 100644
--- a/templates/infoscreen.html.ep
+++ b/templates/infoscreen.html.ep
@@ -76,7 +76,14 @@
</td>
<td class="stop"><%= $stop->name %></td></tr>
% }
- <tr class="routenow"><td class="time"><%= $departure->time %></td>
+ <tr class="routenow"><td class="time">
+% if ($departure->can('sched_time')) {
+ <%= $departure->sched_time %>
+% }
+% else {
+ <%= $departure->time %>
+% }
+ </td>
<td class="stop"><%= $id_name %> <%= $id_stop %></td></tr>
% for my $stop ($departure->route_post) {
<tr class="routepost"><td class="time">
@@ -100,7 +107,7 @@
</span> <!-- moreinfo -->
<span class="route">
% if ($departure->can('route_interesting') and $departure->route_interesting) {
-%= join(' - ', map { $_->name_suf } ($departure->route_interesting));
+%= join(' - ', map { ref($_) ? $_->name_suf : $_ } ($departure->route_interesting));
% }
% elsif ($departure->can('lineref') and $departure->lineref) {
%= $departure->lineref->route
@@ -124,11 +131,13 @@
<span class="delay"> FĂ„LLT AUS </span>
% }
% else {
-% if ($departure->countdown > 0) {
- <%= $departure->countdown %> min
-% }
-% else {
- sofort
+% if ($departure->can('countdown')) {
+% if ($departure->countdown > 0) {
+ <%= $departure->countdown %> min
+% }
+% else {
+ sofort
+% }
% }
% }
</span> <!-- countdown -->
diff --git a/templates/main.html.ep b/templates/main.html.ep
index 151ae88..67a4c5b 100644
--- a/templates/main.html.ep
+++ b/templates/main.html.ep
@@ -81,7 +81,7 @@ change any time.</p>
% else {
<p>
-VRR-Fakedisplay shows the next departures at a public transit stop, just like
+VRR-Infoscreen shows the next departures at a public transit stop, just like
the Lumino LED displays used at some stops.
</p>
@@ -168,10 +168,10 @@ other German transit networks.
<ul>
<li>The EFA backend does not support Umlauts</li>
<li>For D&uuml;sseldorf, the DB backend usually gives better results</li>
-<li>If you write the city correctly (like "Essen", not "essen"), vrr-fake can
+<li>If you write the city correctly (like "Essen", not "essen"), vrr-infoscreen can
shorten destination names</li>
<li><a href="/Essen/Martinstr?no_lines=8">Example</a>
-<li>See also <a href="http://dbf.finalrewind.org/">db-fakedisplay</a> for an
+<li>See also <a href="http://dbf.finalrewind.org/">db-infoscreen</a> for an
interface optimized for Deutsche Bahn departure data</li>
</li>
</ul>
diff --git a/templates/not_found.html.ep b/templates/not_found.html.ep
index 8d4883b..27cabc1 100644
--- a/templates/not_found.html.ep
+++ b/templates/not_found.html.ep
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
- <title>vrr-fakedisplay</title>
+ <title>vrr-infoscreen</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
%= stylesheet '/main.css'