From ededbef98fe27ce235e6de5267f6621432c54cec Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Fri, 6 Dec 2019 21:56:06 +0100 Subject: use comment in share text (if public) --- templates/_checked_in.html.ep | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/templates/_checked_in.html.ep b/templates/_checked_in.html.ep index f915769..7ebc318 100644 --- a/templates/_checked_in.html.ep +++ b/templates/_checked_in.html.ep @@ -245,7 +245,12 @@ % } {is_public} & 0x04 and $journey->{comment}) { + data-text="<%= $journey->{comment} %> (@ <%= $journey->{train_type} %> <%= $journey->{train_no} %> → <%= $journey->{arr_name} %>) #NowTräwelling #dbl" + % } + % else { + 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} %>/<%= $journey->{sched_departure}->epoch %>" % } -- cgit v1.2.3