diff options
author | Daniel Friesel <derf@finalrewind.org> | 2019-12-06 21:56:06 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2019-12-06 21:56:06 +0100 |
commit | ededbef98fe27ce235e6de5267f6621432c54cec (patch) | |
tree | fce2bf1e4cd929f23e47db33da012d411de6fa37 | |
parent | fb126c69289abf7174f53b0d04f56f195e0fbd12 (diff) |
use comment in share text (if public)
-rw-r--r-- | templates/_checked_in.html.ep | 7 |
1 files changed, 6 insertions, 1 deletions
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 @@ % } <a class="action-share blue-text right" style="margin-right: 0;" - data-text="Ich bin gerade <%= $attrib %> <%= $journey->{train_type} %> <%= $journey->{train_no} %> nach <%= $journey->{arr_name} %> #NowTräwelling #dbl" + % if (current_user()->{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 %>" % } |