Unverified Commit 116beccc authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

.

parent ff290c78
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;
		}
	);
+2 −2
Original line number Diff line number Diff line
@@ -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 {
+2 −2
Original line number Diff line number Diff line
@@ -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}) {