diff options
Diffstat (limited to 'templates/individuallist.html.ep')
-rw-r--r-- | templates/individuallist.html.ep | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/templates/individuallist.html.ep b/templates/individuallist.html.ep index f7912b2..06bab3d 100644 --- a/templates/individuallist.html.ep +++ b/templates/individuallist.html.ep @@ -8,7 +8,12 @@ Keine Daten mit diesen Parametern gefunden. % else { <div class="individuallist"> <table> +% if (param('with_messages')) { <tr><th>Bahnhof</th><th>Zeit</th><th>Zug</th><th>Nummer</th><th>Richtung</th><th>Meldungen</th></tr> +% } +% else { +<tr><th>Bahnhof</th><th>Zeit</th><th>Zug</th><th>Nummer</th><th>Richtung</th></tr> +% } % for my $entry (@{ stash('list') // [] }) { % my ($station, $time, $delay, $canceled, $dest, $train_type, $train_no, $line_no, $platform, $messages) = @{$entry}; <tr> @@ -42,11 +47,13 @@ Keine Daten mit diesen Parametern gefunden. <td class="destination"> %= $dest </td> +% if (param('with_messages')) { <td class="messages"> % for my $msg (@{$messages // []}) { <%= $msg %><br/> % } </td> +% } </tr> % } </table> |