summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2023-01-20 18:38:07 +0100
committerDaniel Friesel <derf@finalrewind.org>2023-01-20 18:38:07 +0100
commit72c50a7cc8fea6942a000d3f8f40bb31ee968ba3 (patch)
tree91013f5a9235f706aef8a6786065da23ca75c53f /templates
parent9b205229a3e07d0de49c714b1d9fb516a3205653 (diff)
share button: show expected arrival time if status is not public1.29.15
Diffstat (limited to 'templates')
-rw-r--r--templates/_checked_in.html.ep8
1 files changed, 6 insertions, 2 deletions
diff --git a/templates/_checked_in.html.ep b/templates/_checked_in.html.ep
index c994378..f4acc9f 100644
--- a/templates/_checked_in.html.ep
+++ b/templates/_checked_in.html.ep
@@ -263,17 +263,21 @@
</a>
% }
% elsif ($journey->{arr_name}) {
- % my $attrib = 'im';
+ % my $attrib = 'in';
% if ($journey->{train_type} =~ m{ ^ (?: S | RB ) $ }x) {
% $attrib = 'in der';
% }
<a class="action-share blue-text right"
style="margin-right: 0;"
+ % my $arr_text = q{};
+ % if ($journey->{real_arrival}->epoch and not $user->{is_public} & 0x02) {
+ % $arr_text = $journey->{real_arrival}->strftime(' – Ankunft gegen %H:%M Uhr');
+ % }
% if ($user->{is_public} & 0x04 and $journey->{comment}) {
data-text="<%= $journey->{comment} %> (@ <%= $journey->{train_type} %> <%= $journey->{train_no} %> → <%= $journey->{arr_name} %>) #travelynx"
% }
% else {
- data-text="Ich bin gerade <%= $attrib %> <%= $journey->{train_type} %> <%= $journey->{train_no} %> nach <%= $journey->{arr_name} %> #travelynx"
+ data-text="Ich bin gerade <%= $attrib %> <%= $journey->{train_type} %> <%= $journey->{train_no} %> nach <%= $journey->{arr_name} . $arr_text %> #travelynx"
% }
% if ($user->{is_public} & 0x02) {
data-url="<%= url_for('/status')->to_abs->scheme('https') %>/<%= $user->{name} %>/<%= $journey->{sched_departure}->epoch %>"