summaryrefslogtreecommitdiff
path: root/templates/_checked_in.html.ep
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-05-12 11:44:28 +0200
committerDaniel Friesel <derf@finalrewind.org>2019-05-12 11:44:28 +0200
commit82297687ed0d056184342541c8af708ee547149f (patch)
tree408e5c762079699d043ab2409891317cb96ddc21 /templates/_checked_in.html.ep
parent42eafec28dba956e32ce6f2ffc5f6988e44cfada (diff)
social sharing for current journey1.3.0
Diffstat (limited to 'templates/_checked_in.html.ep')
-rw-r--r--templates/_checked_in.html.ep16
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>