mirror of
https://github.com/derf/travelynx
synced 2024-12-11 13:33:00 +00:00
.
This commit is contained in:
parent
ff290c78e0
commit
116becccb0
3 changed files with 5 additions and 4 deletions
|
@ -1386,6 +1386,7 @@ sub startup {
|
|||
$ret =~ s{[{]name[}]}{$opt{name}}g;
|
||||
$ret =~ s{[{]tt[}]}{$opt{tt}}g;
|
||||
$ret =~ s{[{]tn[}]}{$opt{tn}}g;
|
||||
$ret =~ s{[{]id[}]}{$opt{id}}g;
|
||||
return $ret;
|
||||
}
|
||||
);
|
||||
|
|
|
@ -13,9 +13,9 @@ use DateTime;
|
|||
my @sb_templates = (
|
||||
undef,
|
||||
[ 'DBF', 'https://dbf.finalrewind.org/{name}?show_realtime=1#{tt}{tn}' ],
|
||||
[ 'marudor.de', 'https://marudor.de/{name}' ],
|
||||
[ 'marudor.de', 'https://marudor.de/{name}#{id}' ],
|
||||
[ 'NVM', 'https://nvm.finalrewind.org/board/{eva}#{tt}{tn}' ],
|
||||
[ 'marudor.de/regional', 'https://marudor.de/regional/{name}' ],
|
||||
[ 'marudor.de/regional', 'https://marudor.de/regional/{name}#{id}' ],
|
||||
);
|
||||
|
||||
sub new {
|
||||
|
|
|
@ -104,7 +104,7 @@
|
|||
</div>
|
||||
<div style="float: right; text-align: right;">
|
||||
% if ($user->{sb_template}) {
|
||||
<b><a href="<%= resolve_sb_template($user->{sb_template}, name => $journey->{arr_name}, eva => $journey->{arr_eva}, tt => $journey->{train_type} // q{x}, tn => $journey->{train_no}) %>" class="unmarked"><%= $journey->{arr_name} %></a></b><br/>
|
||||
<b><a href="<%= resolve_sb_template($user->{sb_template}, name => $journey->{arr_name}, eva => $journey->{arr_eva}, tt => $journey->{train_type} // q{x}, tn => $journey->{train_no}, id => $journey->{train_id}) %>" class="unmarked"><%= $journey->{arr_name} %></a></b><br/>
|
||||
% }
|
||||
% else {
|
||||
<b><%= $journey->{arr_name} %></b><br/>
|
||||
|
@ -331,7 +331,7 @@
|
|||
% }
|
||||
</a>
|
||||
% if ($user->{sb_template}) {
|
||||
<a class="nonflex" href="<%= resolve_sb_template($user->{sb_template}, name => $station->[0], eva => $station->[1]{eva}, tt => $journey->{train_type} // q{x}, tn => $journey->{train_no}) %>"><i class="material-icons tiny">train</i></a>
|
||||
<a class="nonflex" href="<%= resolve_sb_template($user->{sb_template}, name => $station->[0], eva => $station->[1]{eva}, tt => $journey->{train_type} // q{x}, tn => $journey->{train_no}, id => $journey->{train_id}) %>"><i class="material-icons tiny">train</i></a>
|
||||
% }
|
||||
% }
|
||||
% if ($user->{sb_template}) {
|
||||
|
|
Loading…
Reference in a new issue