Loading lib/Travelynx.pm +1 −0 Original line number Original line Diff line number Diff line Loading @@ -1774,6 +1774,7 @@ sub startup { $ret =~ s{[{]tt[}]}{$opt{tt}}g; $ret =~ s{[{]tt[}]}{$opt{tt}}g; $ret =~ s{[{]tn[}]}{$opt{tn}}g; $ret =~ s{[{]tn[}]}{$opt{tn}}g; $ret =~ s{[{]id[}]}{$opt{id}}g; $ret =~ s{[{]id[}]}{$opt{id}}g; $ret =~ s{[{]dbris[}]}{$opt{dbris}}g; $ret =~ s{[{]hafas[}]}{$opt{hafas}}g; $ret =~ s{[{]hafas[}]}{$opt{hafas}}g; return $ret; return $ret; } } Loading lib/Travelynx/Model/Users.pm +1 −1 Original line number Original line Diff line number Diff line Loading @@ -440,7 +440,7 @@ sub get { past_all => $user->{public_level} & 0x10000 ? 1 : 0, past_all => $user->{public_level} & 0x10000 ? 1 : 0, email => $user->{email}, email => $user->{email}, sb_template => sb_template => 'https://dbf.finalrewind.org/{name}?rt=1&hafas={hafas}#{tt}{tn}', 'https://dbf.finalrewind.org/{name}?rt=1&dbris={dbris}&hafas={hafas}#{tt}{tn}', registered_at => DateTime->from_epoch( registered_at => DateTime->from_epoch( epoch => $user->{registered_at_ts}, epoch => $user->{registered_at_ts}, time_zone => 'Europe/Berlin' time_zone => 'Europe/Berlin' Loading templates/_checked_in.html.ep +2 −2 Original line number Original line Diff line number Diff line Loading @@ -128,7 +128,7 @@ % } % } </div> </div> <div style="float: right; text-align: right;"> <div style="float: right; text-align: right;"> <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}, hafas => $journey->{is_hafas} ? $journey->{backend_name} : q{}) %>" 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}, dbris => $journey->{is_dbris} ? $journey->{backend_name} : q{}, hafas => $journey->{is_hafas} ? $journey->{backend_name} : q{}) %>" class="unmarked"><%= $journey->{arr_name} %></a></b><br/> % if ($journey->{real_arrival}->epoch) { % if ($journey->{real_arrival}->epoch) { <b><%= $journey->{real_arrival}->strftime('%H:%M') %></b> <b><%= $journey->{real_arrival}->strftime('%H:%M') %></b> % if ($journey->{real_arrival}->epoch != $journey->{sched_arrival}->epoch) { % if ($journey->{real_arrival}->epoch != $journey->{sched_arrival}->epoch) { Loading Loading @@ -410,7 +410,7 @@ % } % } </span> </span> </a> </a> <a class="nonflex" href="<%= resolve_sb_template($user->{sb_template}, name => $station->[0], eva => $station->[1], tt => $journey->{train_type} // q{x}, tn => $journey->{train_no}, id => $journey->{train_id}, hafas => $journey->{is_hafas} ? $journey->{backend_name} : q{}) %>"><i class="material-icons tiny"><%= $journey->{is_hafas} ? 'directions' : 'train' %></i></a> <a class="nonflex" href="<%= resolve_sb_template($user->{sb_template}, name => $station->[0], eva => $station->[1], tt => $journey->{train_type} // q{x}, tn => $journey->{train_no}, id => $journey->{train_id}, dbris => $journey->{is_dbris} ? $journey->{backend_name} : q{}, hafas => $journey->{is_hafas} ? $journey->{backend_name} : q{}) %>"><i class="material-icons tiny"><%= $journey->{is_hafas} ? 'directions' : 'train' %></i></a> % } % } </div> </div> </div> </div> Loading Loading
lib/Travelynx.pm +1 −0 Original line number Original line Diff line number Diff line Loading @@ -1774,6 +1774,7 @@ sub startup { $ret =~ s{[{]tt[}]}{$opt{tt}}g; $ret =~ s{[{]tt[}]}{$opt{tt}}g; $ret =~ s{[{]tn[}]}{$opt{tn}}g; $ret =~ s{[{]tn[}]}{$opt{tn}}g; $ret =~ s{[{]id[}]}{$opt{id}}g; $ret =~ s{[{]id[}]}{$opt{id}}g; $ret =~ s{[{]dbris[}]}{$opt{dbris}}g; $ret =~ s{[{]hafas[}]}{$opt{hafas}}g; $ret =~ s{[{]hafas[}]}{$opt{hafas}}g; return $ret; return $ret; } } Loading
lib/Travelynx/Model/Users.pm +1 −1 Original line number Original line Diff line number Diff line Loading @@ -440,7 +440,7 @@ sub get { past_all => $user->{public_level} & 0x10000 ? 1 : 0, past_all => $user->{public_level} & 0x10000 ? 1 : 0, email => $user->{email}, email => $user->{email}, sb_template => sb_template => 'https://dbf.finalrewind.org/{name}?rt=1&hafas={hafas}#{tt}{tn}', 'https://dbf.finalrewind.org/{name}?rt=1&dbris={dbris}&hafas={hafas}#{tt}{tn}', registered_at => DateTime->from_epoch( registered_at => DateTime->from_epoch( epoch => $user->{registered_at_ts}, epoch => $user->{registered_at_ts}, time_zone => 'Europe/Berlin' time_zone => 'Europe/Berlin' Loading
templates/_checked_in.html.ep +2 −2 Original line number Original line Diff line number Diff line Loading @@ -128,7 +128,7 @@ % } % } </div> </div> <div style="float: right; text-align: right;"> <div style="float: right; text-align: right;"> <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}, hafas => $journey->{is_hafas} ? $journey->{backend_name} : q{}) %>" 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}, dbris => $journey->{is_dbris} ? $journey->{backend_name} : q{}, hafas => $journey->{is_hafas} ? $journey->{backend_name} : q{}) %>" class="unmarked"><%= $journey->{arr_name} %></a></b><br/> % if ($journey->{real_arrival}->epoch) { % if ($journey->{real_arrival}->epoch) { <b><%= $journey->{real_arrival}->strftime('%H:%M') %></b> <b><%= $journey->{real_arrival}->strftime('%H:%M') %></b> % if ($journey->{real_arrival}->epoch != $journey->{sched_arrival}->epoch) { % if ($journey->{real_arrival}->epoch != $journey->{sched_arrival}->epoch) { Loading Loading @@ -410,7 +410,7 @@ % } % } </span> </span> </a> </a> <a class="nonflex" href="<%= resolve_sb_template($user->{sb_template}, name => $station->[0], eva => $station->[1], tt => $journey->{train_type} // q{x}, tn => $journey->{train_no}, id => $journey->{train_id}, hafas => $journey->{is_hafas} ? $journey->{backend_name} : q{}) %>"><i class="material-icons tiny"><%= $journey->{is_hafas} ? 'directions' : 'train' %></i></a> <a class="nonflex" href="<%= resolve_sb_template($user->{sb_template}, name => $station->[0], eva => $station->[1], tt => $journey->{train_type} // q{x}, tn => $journey->{train_no}, id => $journey->{train_id}, dbris => $journey->{is_dbris} ? $journey->{backend_name} : q{}, hafas => $journey->{is_hafas} ? $journey->{backend_name} : q{}) %>"><i class="material-icons tiny"><%= $journey->{is_hafas} ? 'directions' : 'train' %></i></a> % } % } </div> </div> </div> </div> Loading