From 82297687ed0d056184342541c8af708ee547149f Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 12 May 2019 11:44:28 +0200 Subject: social sharing for current journey --- templates/_checked_in.html.ep | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'templates/_checked_in.html.ep') 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 @@
- undo Checkin Rückgängig? + undo Rückgängig + % if ($journey->{arr_name}) { + % my $attrib = 'im'; + % if ($journey->{train_type} =~ m{ ^ (?: S | RB ) $ }x) { + $attrib = 'in der'; + % } + {is_public} & 0x02) { + data-url="<%= url_for('/status')->to_abs->scheme('https') %>/<%= current_user->{name} %>" + % } + > + share Teilen + + % }
-- cgit v1.2.3