diff options
Diffstat (limited to 'templates/_checked_in.html.ep')
-rw-r--r-- | templates/_checked_in.html.ep | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/templates/_checked_in.html.ep b/templates/_checked_in.html.ep index b15db9d..74a4efb 100644 --- a/templates/_checked_in.html.ep +++ b/templates/_checked_in.html.ep @@ -109,7 +109,21 @@ </div> <div class="card-action"> <a class="action-undo blue-text" data-id="in_transit"> - <i class="material-icons">undo</i> Checkin Rückgängig? + <i class="material-icons left">undo</i> Rückgängig </a> + % if ($journey->{arr_name}) { + % my $attrib = 'im'; + % if ($journey->{train_type} =~ m{ ^ (?: S | RB ) $ }x) { + $attrib = 'in der'; + % } + <a class="action-share blue-text right" + data-text="Ich bin gerade <%= $attrib %> <%= $journey->{train_type} %> <%= $journey->{train_no} %> nach <%= $journey->{arr_name} %> #NowTräwelling #dbl" + % if (current_user()->{is_public} & 0x02) { + data-url="<%= url_for('/status')->to_abs->scheme('https') %>/<%= current_user->{name} %>" + % } + > + <i class="material-icons left">share</i> Teilen + </a> + % } </div> </div> |