summaryrefslogtreecommitdiff
path: root/templates/_public_status_card.html.ep
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-12-06 21:42:26 +0100
committerDaniel Friesel <derf@finalrewind.org>2019-12-06 21:44:31 +0100
commitfb126c69289abf7174f53b0d04f56f195e0fbd12 (patch)
tree7e80d49575891f90132b05a95ab5a242260de53e /templates/_public_status_card.html.ep
parent094c536eb475b02a26f65769d6ff460d270ef454 (diff)
optionally show journey comment in public user status
Closes #19
Diffstat (limited to 'templates/_public_status_card.html.ep')
-rw-r--r--templates/_public_status_card.html.ep3
1 files changed, 3 insertions, 0 deletions
diff --git a/templates/_public_status_card.html.ep b/templates/_public_status_card.html.ep
index 0bed878..4a846af 100644
--- a/templates/_public_status_card.html.ep
+++ b/templates/_public_status_card.html.ep
@@ -3,6 +3,9 @@
<div class="card-content">
<i class="material-icons small right sync-failed-marker grey-text" style="display: none;">sync_problem</i>
<span class="card-title"><%= $name %> ist unterwegs</span>
+ % if ($public_level & 0x04 and $journey->{comment}) {
+ <p>„<%= $journey->{comment} %>“</p>
+ % }
<p>
% if ($journey->{train_line}) {
<div class="center-align"><b><%= $journey->{train_type} %> <%= $journey->{train_line} %></b> <%= $journey->{train_no} %></div>