mirror of
https://github.com/derf/travelynx
synced 2024-12-02 17:29:11 +00:00
departures: show annotation if no realtime data is available
This commit is contained in:
parent
37a0b8f2ab
commit
84afb1bc2c
2 changed files with 4 additions and 1 deletions
2
cpanfile
2
cpanfile
|
@ -13,7 +13,7 @@ requires 'Mojolicious::Plugin::Authentication';
|
|||
requires 'Mojo::Pg';
|
||||
requires 'Text::CSV';
|
||||
requires 'Travel::Status::DE::DBWagenreihung';
|
||||
requires 'Travel::Status::DE::IRIS';
|
||||
requires 'Travel::Status::DE::IRIS', '1.57';
|
||||
requires 'UUID::Tiny';
|
||||
requires 'JSON';
|
||||
requires 'JSON::XS';
|
||||
|
|
|
@ -101,6 +101,9 @@
|
|||
% if ($result->departure_delay) {
|
||||
(<%= sprintf('%+d', $result->departure_delay) %>)
|
||||
% }
|
||||
% elsif (not $result->has_realtime and $result->start->epoch < $now_epoch) {
|
||||
<i class="material-icons" aria-label="Keine Echtzeitdaten vorhanden" style="font-size: 16px;">gps_off</i>
|
||||
% }
|
||||
</td>
|
||||
</tr>
|
||||
% }
|
||||
|
|
Loading…
Reference in a new issue