summaryrefslogtreecommitdiff
path: root/templates/_checked_in.html.ep
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-12-06 21:56:06 +0100
committerDaniel Friesel <derf@finalrewind.org>2019-12-06 21:56:06 +0100
commitededbef98fe27ce235e6de5267f6621432c54cec (patch)
treefce2bf1e4cd929f23e47db33da012d411de6fa37 /templates/_checked_in.html.ep
parentfb126c69289abf7174f53b0d04f56f195e0fbd12 (diff)
use comment in share text (if public)
Diffstat (limited to 'templates/_checked_in.html.ep')
-rw-r--r--templates/_checked_in.html.ep7
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 %>"
% }