diff options
author | Daniel Friesel <derf@finalrewind.org> | 2019-05-12 11:44:28 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2019-05-12 11:44:28 +0200 |
commit | 82297687ed0d056184342541c8af708ee547149f (patch) | |
tree | 408e5c762079699d043ab2409891317cb96ddc21 /templates | |
parent | 42eafec28dba956e32ce6f2ffc5f6988e44cfada (diff) |
social sharing for current journey1.3.0
Diffstat (limited to 'templates')
-rw-r--r-- | templates/_checked_in.html.ep | 16 | ||||
-rw-r--r-- | templates/changelog.html.ep | 13 |
2 files changed, 28 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> diff --git a/templates/changelog.html.ep b/templates/changelog.html.ep index 693e6d4..6d56c1b 100644 --- a/templates/changelog.html.ep +++ b/templates/changelog.html.ep @@ -2,6 +2,19 @@ <div class="row"> <div class="col s12 m1 l1"> + 1.3 + </div> + <div class="col s12 m11 l11"> + <p> + <i class="material-icons left">add</i> Teilen der aktuellen Zugfahrt. + Wird derzeit nur auf Chrome (Android), Opera (Android) und + Safari (iOS / macOS) unterstützt. + </p> + </div> +</div> + +<div class="row"> + <div class="col s12 m1 l1"> 1.2 </div> <div class="col s12 m11 l11"> |