summaryrefslogtreecommitdiff
path: root/templates/_checked_in.html.ep
diff options
context:
space:
mode:
Diffstat (limited to 'templates/_checked_in.html.ep')
-rw-r--r--templates/_checked_in.html.ep21
1 files changed, 18 insertions, 3 deletions
diff --git a/templates/_checked_in.html.ep b/templates/_checked_in.html.ep
index a493384..5631e12 100644
--- a/templates/_checked_in.html.ep
+++ b/templates/_checked_in.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">Eingecheckt in <%= $journey->{train_type} %> <%= $journey->{train_no} %></span>
+ % if ($journey->{comment}) {
+ <p><%= $journey->{comment} %>.</p>
+ % }
<p>
<div class="center-align countdown"
data-journey="<%= $journey->{real_departure}->epoch %>;<%= <%= $journey->{real_arrival}->epoch %>"
@@ -216,9 +219,16 @@
% }
</div>
<div class="card-action">
- <a class="action-undo blue-text" data-id="in_transit" style="margin-right: 0;">
- <i class="material-icons left">undo</i> Rückgängig
- </a>
+ % if ($journey->{arr_name}) {
+ <a style="margin-right: 0;" href="/journey/comment">
+ <i class="material-icons left">comment</i> Kommentar
+ </a>
+ % }
+ % else {
+ <a class="action-undo blue-text" data-id="in_transit" style="margin-right: 0;">
+ <i class="material-icons left">undo</i> Checkin Rückgängig
+ </a>
+ % }
% if (defined $journey->{arrival_countdown} and $journey->{arrival_countdown} <= 0) {
<a
class="action-checkout right"
@@ -276,6 +286,11 @@
auschecken</a>.
</p>
</div>
+ <div class="card-action">
+ <a class="action-undo blue-text" data-id="in_transit" style="margin-right: 0;">
+ <i class="material-icons left">undo</i> Checkin Rückgängig
+ </a>
+ </div>
</div>
% }
</div>