summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xlib/Travelynx.pm1
-rw-r--r--lib/Travelynx/Model/Users.pm4
-rw-r--r--templates/_checked_in.html.ep4
3 files changed, 5 insertions, 4 deletions
diff --git a/lib/Travelynx.pm b/lib/Travelynx.pm
index afc065f..7dc24dc 100755
--- a/lib/Travelynx.pm
+++ b/lib/Travelynx.pm
@@ -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;
}
);
diff --git a/lib/Travelynx/Model/Users.pm b/lib/Travelynx/Model/Users.pm
index b694ac3..19e077a 100644
--- a/lib/Travelynx/Model/Users.pm
+++ b/lib/Travelynx/Model/Users.pm
@@ -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 {
diff --git a/templates/_checked_in.html.ep b/templates/_checked_in.html.ep
index 897766e..bd1ddc6 100644
--- a/templates/_checked_in.html.ep
+++ b/templates/_checked_in.html.ep
@@ -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}) {