summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorDaniel Friesel <daniel.friesel@uos.de>2022-08-31 18:09:12 +0200
committerDaniel Friesel <daniel.friesel@uos.de>2022-08-31 18:09:12 +0200
commitd23bfb57e201f70329e896fb07429b4913e5148a (patch)
tree568199f36448218ef030a733fc7041ee726dfaa4 /templates
parent76c1bffa6c8eef6f9579131d33fc761aee87231c (diff)
train details: replace HAFAS 'Information'/'Störung' messages with icons
Diffstat (limited to 'templates')
-rw-r--r--templates/_train_details.html.ep12
1 files changed, 9 insertions, 3 deletions
diff --git a/templates/_train_details.html.ep b/templates/_train_details.html.ep
index 7ef2138..bcef76c 100644
--- a/templates/_train_details.html.ep
+++ b/templates/_train_details.html.ep
@@ -173,16 +173,22 @@
% else {
%= $pair->[0]->strftime('%H:%M')
% }
+ <span class="reason">
+%= $pair->[1]
+ </span>
% }
% else {
+% if ($pair->[1]{icon}) {
+ <i class="material-icons"><%= $pair->[1]{icon} %></i>
+% }
%= $pair->[0]
% if (length($pair->[0]) > 25) {
<br/>
% }
+ <span class="reason">
+%= $pair->[1]{text}
+ </span>
% }
- <span class="reason">
-%= $pair->[1]
- </span>
</li>
% }
% if ($departure->{route_info}) {