Commit ededbef9 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

use comment in share text (if public)

parent fb126c69
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -245,7 +245,12 @@
				% }
				<a class="action-share blue-text right"
					style="margin-right: 0;"
					% 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 %>"
					% }