mirror of
https://github.com/derf/travelynx
synced 2024-11-10 15:04:17 +00:00
use comment in share text (if public)
This commit is contained in:
parent
fb126c6928
commit
ededbef98f
1 changed files with 6 additions and 1 deletions
|
@ -245,7 +245,12 @@
|
||||||
% }
|
% }
|
||||||
<a class="action-share blue-text right"
|
<a class="action-share blue-text right"
|
||||||
style="margin-right: 0;"
|
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) {
|
% if (current_user()->{is_public} & 0x02) {
|
||||||
data-url="<%= url_for('/status')->to_abs->scheme('https') %>/<%= current_user->{name} %>/<%= $journey->{sched_departure}->epoch %>"
|
data-url="<%= url_for('/status')->to_abs->scheme('https') %>/<%= current_user->{name} %>/<%= $journey->{sched_departure}->epoch %>"
|
||||||
% }
|
% }
|
||||||
|
|
Loading…
Reference in a new issue