This commit is contained in:
Daniel Friesel 2022-07-16 20:34:11 +02:00
parent ff290c78e0
commit 116becccb0
No known key found for this signature in database
GPG key ID: 100D5BFB5166E005
3 changed files with 5 additions and 4 deletions

View file

@ -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;
}
);

View file

@ -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 {

View file

@ -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}) {