diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/_train_details.html.ep | 6 | ||||
-rw-r--r-- | templates/about.html.ep | 11 | ||||
-rw-r--r-- | templates/exception.html.ep | 5 |
3 files changed, 13 insertions, 9 deletions
diff --git a/templates/_train_details.html.ep b/templates/_train_details.html.ep index 5bd42c9..e5d5c72 100644 --- a/templates/_train_details.html.ep +++ b/templates/_train_details.html.ep @@ -165,7 +165,7 @@ <ul class="messages"> % for my $pair (@{$departure->{moreinfo}}) { <li> -% if ($pair->[0]->isa('DateTime')) { +% if (ref($pair->[0]) eq 'DateTime') { % if ($pair->[0]->day != $dt_now->day) { % $pair->[0]->set_locale('de_DE'); %= $pair->[0]->strftime('%a %H:%M') @@ -214,7 +214,7 @@ % else { generic-stop % } -% if ($stop->{rt_dep}) { +% if ($stop->{rt_dep} and $stop->{dep_delay}) { "><%= $stop->{sched_dep}->strftime('%H:%M') %> (heute <%= $stop->{rt_dep}->strftime('%H:%M') %>) <%= $stop->{name} %></a> % } % else { @@ -259,7 +259,7 @@ % else { generic-stop % } -% if ($stop->{rt_arr}) { +% if ($stop->{rt_arr} and $stop->{arr_delay}) { "><%= $stop->{sched_arr}->strftime('%H:%M') %> (heute <%= $stop->{rt_arr}->strftime('%H:%M') %>) <%= $stop->{name} %></a> % } % else { diff --git a/templates/about.html.ep b/templates/about.html.ep index 1c04456..ce375d5 100644 --- a/templates/about.html.ep +++ b/templates/about.html.ep @@ -25,17 +25,16 @@ zu:<br/> • Abfahrtstafel: DB IRIS via <a href="https://finalrewind.org/projects/Travel-Status-DE-IRIS/">Travel::Status::DE::IRIS</a> v<%= $Travel::Status::DE::IRIS::VERSION %><br/> - • Meldungen und Ankunft/Abfahrt an Unterwegshalten: DB HAFAS via <a href="https://git.finalrewind.org/db-fakedisplay/tree/lib/DBInfoscreen/Helper/HAFAS.pm">Helper/HAFAS.pm</a><br/> + • Zugdetails: <a href="https://finalrewind.org/projects/Travel-Status-DE-DeutscheBahn/">Travel::Status::DE::HAFAS</a> + % if ($Travel::Status::DE::HAFAS::VERSION) { + v<%= $Travel::Status::DE::HAFAS::VERSION %> + % } + <br/> • Wagenreihung: <a href="https://finalrewind.org/projects/Travel-Status-DE-DBWagenreihung/">Travel::Status::DE::DBWagenreihung</a> % if ($Travel::Status::DE::DBWagenreihung::VERSION) { v<%= $Travel::Status::DE::DBWagenreihung::VERSION %> % } <br/> - • Karte: <a href="https://finalrewind.org/projects/Travel-Status-DE-DeutscheBahn/">Travel::Status::DE::HAFAS</a> - % if ($Travel::Status::DE::HAFAS::VERSION) { - v<%= $Travel::Status::DE::HAFAS::VERSION %> - % } - <br/> • Zugauslastung Fernverkehr: DB HAFAS via <a href="https://docs.bahn.expert/">bahn.expert</a><br/> • Zugauslastung Regionalverkehr: VRR EFA via <a href="https://github.com/derf/eva-to-efa-gw">eva-to-efa-gw</a><br/> <br/> diff --git a/templates/exception.html.ep b/templates/exception.html.ep index 2f20bc6..65ec7ff 100644 --- a/templates/exception.html.ep +++ b/templates/exception.html.ep @@ -4,9 +4,14 @@ Beim Bearbeiten der Anfrage ist ein Fehler aufgetreten.<br/> <pre> ----------[Debug start]---------- +% if ($exception) { %= $exception->message Stash: %= dumper $snapshot +% } +% else { +%= stash('message') +% } ----------[Debug end]---------- </pre> </div> |