diff options
author | Daniel Friesel <daniel.friesel@uos.de> | 2021-08-31 17:56:35 +0200 |
---|---|---|
committer | Daniel Friesel <daniel.friesel@uos.de> | 2021-08-31 17:56:35 +0200 |
commit | f88817d98eedc3f0c99857e842127a5f4b78fba2 (patch) | |
tree | 24fcb5fb2b621e51250d154ffb9656b3c333367f /templates | |
parent | 39746c144b1bcfccaaae1dc9534c3017c4814bf5 (diff) |
Add past option
Diffstat (limited to 'templates')
-rw-r--r-- | templates/_train_details.html.ep | 4 | ||||
-rw-r--r-- | templates/layouts/app.html.ep | 8 |
2 files changed, 10 insertions, 2 deletions
diff --git a/templates/_train_details.html.ep b/templates/_train_details.html.ep index 28369cb..26c2eb4 100644 --- a/templates/_train_details.html.ep +++ b/templates/_train_details.html.ep @@ -195,7 +195,7 @@ <ul class="mroute"> % for my $stop (@{$departure->{route_pre_diff}}) { <li class="<%= $stop->{isPast} ? 'past-stop' : 'future-stop' %>"> - <a href="<%= url_for('station', station => $stop->{name})->query({detailed => param('detailed')}) %>#<%= ($departure->{train_type} // q{x}) . ($departure->{train_no} // q{x}) %>" class=" + <a href="<%= url_for('station', station => $stop->{name})->query({detailed => param('detailed'), past => param('past')}) %>#<%= ($departure->{train_type} // q{x}) . ($departure->{train_no} // q{x}) %>" class=" % if ($stop->{isAdditional}) { additional-stop % } @@ -240,7 +240,7 @@ % } % for my $stop (@{$departure->{route_post_diff}}) { <li class="<%= $stop->{isPast} ? 'past-stop' : 'future-stop' %>"> - <a href="<%= url_for('station', station => $stop->{name})->query({detailed => param('detailed')}) %>#<%= ($departure->{train_type} // q{x}) . ($departure->{train_no} // q{x}) %>" class=" + <a href="<%= url_for('station', station => $stop->{name})->query({detailed => param('detailed'), past => param('past')}) %>#<%= ($departure->{train_type} // q{x}) . ($departure->{train_no} // q{x}) %>" class=" % if ($stop->{isAdditional}) { additional-stop % } diff --git a/templates/layouts/app.html.ep b/templates/layouts/app.html.ep index 724d700..fa13f75 100644 --- a/templates/layouts/app.html.ep +++ b/templates/layouts/app.html.ep @@ -177,6 +177,14 @@ Bitte eine Station aus der Liste auswählen</div> </div> <div class="field"> <div class="desc"> + %= check_box 'past' => 1, id => 'past' + <label for="past"> + Bereits abgefahrene Züge anzeigen + </label> + </div> + </div> + <div class="field"> + <div class="desc"> %= check_box 'hide_opts' => 1, id => 'id_hide_opts' <label for="id_hide_opts"> Formular verstecken (für Infoscreens) |