summaryrefslogtreecommitdiff
path: root/templates/_checked_in.html.ep
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2022-02-16 20:56:28 +0100
committerDaniel Friesel <derf@finalrewind.org>2022-02-16 20:56:28 +0100
commit167b01fa4264a8193ff3cbd9d3f1741f5702235a (patch)
tree6b03555ced3c757269898f8f7ebf46506aa2b06a /templates/_checked_in.html.ep
parentef3252863e28905fe96a49a91e5a62c156c69e6e (diff)
link traewelling profile from travelynx profile; show traewelling status
Diffstat (limited to 'templates/_checked_in.html.ep')
-rw-r--r--templates/_checked_in.html.ep14
1 files changed, 14 insertions, 0 deletions
diff --git a/templates/_checked_in.html.ep b/templates/_checked_in.html.ep
index 76d11bc..d882501 100644
--- a/templates/_checked_in.html.ep
+++ b/templates/_checked_in.html.ep
@@ -278,6 +278,20 @@
</ul>
</p>
% }
+ % if ($journey->{traewelling}{errored} and $journey->{traewelling_log_latest}) {
+ <p style="margin-bottom: 2ex;">
+ <ul>
+ <li> <i class="material-icons tiny">warning</i> Träwelling: <%= $journey->{traewelling_log_latest} %></li>
+ </ul>
+ </p>
+ % }
+ % if ($journey->{traewelling_url}) {
+ <p style="margin-bottom: 2ex;">
+ <ul>
+ <li> <i class="material-icons tiny">sync</i> Träwelling: <a href="<%= $journey->{traewelling_url} %>"><%= $journey->{traewelling_log_latest} %></a></li>
+ </ul>
+ </p>
+ % }
</div>
<div class="card-action">
% my $url = 'https://marudor.de/details/' . $journey->{train_type} . ' ' . $journey->{train_no} . '/' . DateTime->now(time_zone => 'Europe/Berlin')->epoch . '000';