Skip to content

Commit

Permalink
map header: Also include filter
Browse files Browse the repository at this point in the history
  • Loading branch information
derf committed Jan 2, 2024
1 parent 47658b7 commit 2391980
Showing 1 changed file with 17 additions and 8 deletions.
25 changes: 17 additions & 8 deletions templates/history_map.html.ep
Original file line number Diff line number Diff line change
@@ -1,22 +1,31 @@
<div class="row">
<div class="col s12">
% if (@{$station_coordinates}) {
Fahrten
% }
% else {
Keine Fahrten
% }
% if (param('filter_type')) {
mit <strong><%= param('filter_type') %></strong>
% }
% if (stash('year')) {
Fahrten im Jahr <strong><%= stash('year') %></strong>
im Jahr <strong><%= stash('year') %></strong>
% }
% elsif (param('filter_from') and param('filter_to')) {
Fahrten zwischen dem <strong><%= param('filter_from') %></strong> und dem <strong><%= param('filter_to') %></strong>
zwischen dem <strong><%= param('filter_from') %></strong> und dem <strong><%= param('filter_to') %></strong>
% }
% elsif (param('filter_from')) {
Fahrten ab dem <strong><%= param('filter_from') %></strong>
ab dem <strong><%= param('filter_from') %></strong>
% }
% elsif (param('filter_to')) {
Fahrten bis einschließlich <strong><%= param('filter_to') %></strong>
bis einschließlich <strong><%= param('filter_to') %></strong>
% }
% elsif (@{$station_coordinates}) {
Alle bisherigen Fahrten
in travelynx
% }
% else {
Keine Fahrten gefunden.
% if (not @{$station_coordinates}) {
gefunden
% }
</div>
</div>
Expand Down Expand Up @@ -92,7 +101,7 @@
<div class="row">
<div class="input-field col s12">
%= text_field 'filter_type', id => 'filter_type'
<label for="filter_tpye">Zugtypen</label>
<label for="filter_tpye">Verkehrsmittel</label>
</div>
</div>
<div class="row">
Expand Down

0 comments on commit 2391980

Please sign in to comment.