summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/_train_details.html.ep4
-rw-r--r--templates/app.html.ep2
2 files changed, 2 insertions, 4 deletions
diff --git a/templates/_train_details.html.ep b/templates/_train_details.html.ep
index 5e904d9..b1dfd13 100644
--- a/templates/_train_details.html.ep
+++ b/templates/_train_details.html.ep
@@ -3,9 +3,7 @@
% 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} %></span>
-% }
+ <span class="train-no"><%= $departure->{train_line} ? $departure->{train_no} : q{} %></span>
% }
% else {
<span class="train-line"><%= $departure->{train} // q{???} %></span>
diff --git a/templates/app.html.ep b/templates/app.html.ep
index df4bb6f..462f27e 100644
--- a/templates/app.html.ep
+++ b/templates/app.html.ep
@@ -50,7 +50,7 @@
<li
data-train="<%= ($departure->{train_type} // q{}) %> <%= ($departure->{train_no} // $departure->{train} // q{}) %>"
data-line="<%= $departure->{train_type} %> <%= $departure->{train_line} // $departure->{train_no} %>"
- data-no="<%= $departure->{train_no} // q{} %>"
+ data-no="<%= $departure->{train_line} ? $departure->{train_no} : q{} %>"
data-linetype="<%= $linetype %>"
data-from="<%= $departure->{origin} // q{???} %>"
data-to="<%= $departure->{destination} // q{???} %>"