summaryrefslogtreecommitdiff
path: root/cgi/templates/single.html.ep
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2013-11-26 18:16:52 +0100
committerDaniel Friesel <derf@finalrewind.org>2013-11-26 18:16:52 +0100
commit226253cb7ab9746cdb5767ebd3f8495ef60a04da (patch)
tree5f7aa9f0cd82668a9fbf01437d52abc4e0b434e8 /cgi/templates/single.html.ep
parent26ac704c081ba6deb60a6763cb5d537f6217b463 (diff)
use CSS hierarchy for single/multi display distinction
Diffstat (limited to 'cgi/templates/single.html.ep')
-rw-r--r--cgi/templates/single.html.ep23
1 files changed, 13 insertions, 10 deletions
diff --git a/cgi/templates/single.html.ep b/cgi/templates/single.html.ep
index 413ffeb..7376eb4 100644
--- a/cgi/templates/single.html.ep
+++ b/cgi/templates/single.html.ep
@@ -1,19 +1,20 @@
% if (@{$departures}) {
+<div class="displaysingle">
% my $i = 0;
% for my $departure (@{$departures}) {
% $i++;
-<div class="s_display">
-<div class="s_platform">
+<div class="display">
+<div class="platform">
%= $departure->{platform}
</div>
-<div class="s_time">
+<div class="time">
%= $departure->{time}
</div>
-<div class="s_train">
+<div class="train">
%= $departure->{train}
</div>
-<div class="s_via">
+<div class="via">
% my $via_max = @{$departure->{via}};
% my $via_cur = 0;
% for my $stop (@{$departure->{via}}) {
@@ -21,24 +22,26 @@
<span><%= $stop %><% if ($via_cur < $via_max) { %> - <% } %></span>
% }
</div>
-<div class="s_destination">
+<div class="destination">
%= $departure->{destination}
</div>
% if ($departure->{info}) {
-<div class="s_info">
+<div class="info">
<marquee behaviour="scroll" scrollamount="1" direction="left">
%= $departure->{info}
</marquee>
</div>
% }
-</div> <!-- s_display -->
+</div> <!-- display -->
% }
+</div> <!-- displaysingle -->
+
% }
% else {
-<div class="s_display">
-<div class="s_no_data">
+<div class="display">
+<div class="no_data">
Bitte Ansage beachten
</div>
</div>