From 8c15966bd1be2bc8098cd71c64a7f8aa01df885a Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Fri, 15 Jul 2022 22:26:50 +0200 Subject: dbf: link to currently checked in train --- lib/Travelynx.pm | 2 ++ lib/Travelynx/Model/Users.pm | 2 +- templates/_checked_in.html.ep | 4 ++-- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/Travelynx.pm b/lib/Travelynx.pm index a35245f..afc065f 100755 --- a/lib/Travelynx.pm +++ b/lib/Travelynx.pm @@ -1384,6 +1384,8 @@ sub startup { my $ret = $template; $ret =~ s{[{]eva[}]}{$opt{eva}}g; $ret =~ s{[{]name[}]}{$opt{name}}g; + $ret =~ s{[{]tt[}]}{$opt{tt}}g; + $ret =~ s{[{]tn[}]}{$opt{tn}}g; return $ret; } ); diff --git a/lib/Travelynx/Model/Users.pm b/lib/Travelynx/Model/Users.pm index dc8c1a9..b0fdba0 100644 --- a/lib/Travelynx/Model/Users.pm +++ b/lib/Travelynx/Model/Users.pm @@ -12,7 +12,7 @@ use DateTime; my @sb_templates = ( undef, - [ 'DBF', 'https://dbf.finalrewind.org/{name}' ], + [ 'DBF', 'https://dbf.finalrewind.org/{name}?show_realtime=1#{tt}{tn}' ], [ 'marudor.de', 'https://marudor.de/{name}' ], [ 'NVM', 'https://nvm.finalrewind.org/board/{eva}' ], ); diff --git a/templates/_checked_in.html.ep b/templates/_checked_in.html.ep index dd00026..533e73c 100644 --- a/templates/_checked_in.html.ep +++ b/templates/_checked_in.html.ep @@ -104,7 +104,7 @@
% if ($user->{sb_template}) { - <%= $journey->{arr_name} %>
+ <%= $journey->{arr_name} %>
% } % else { <%= $journey->{arr_name} %>
@@ -331,7 +331,7 @@ % } % if ($user->{sb_template}) { - info + info % } % } % if ($user->{sb_template}) { -- cgit v1.2.3