diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/history_by_year.html.ep | 8 | ||||
-rw-r--r-- | templates/year_in_review.html.ep | 2 |
2 files changed, 9 insertions, 1 deletions
diff --git a/templates/history_by_year.html.ep b/templates/history_by_year.html.ep index 9f9b022..adc4840 100644 --- a/templates/history_by_year.html.ep +++ b/templates/history_by_year.html.ep @@ -23,6 +23,14 @@ %= include '_history_months_for_year'; +% if (param('filter') and param('filter') eq 'single') { +<div class="row"> + <div class="col s12 m12 l12"> + <p>Die folgende Auflistung enthält nur Fahrten, deren Kombination aus Start und Ziel im aktuellen Jahr einmalig ist.</p> + </div> +</div> +% } + % if (stash('journeys')) { %= include '_history_trains', date_format => '%d.%m.', journeys => stash('journeys'); % } diff --git a/templates/year_in_review.html.ep b/templates/year_in_review.html.ep index 9a19c8f..dae45bc 100644 --- a/templates/year_in_review.html.ep +++ b/templates/year_in_review.html.ep @@ -155,7 +155,7 @@ % } % if ($review->{single_trip_count}) { <p> - <strong><%= $review->{single_trip_percent_h} %></strong> aller Verbindungen bist du nur genau <strong>einmal</strong> gefahren. Zum Beispiel:<br/> + <a href="/history/<%= $year %>?filter=single"><strong><%= $review->{single_trip_percent_h} %></strong> aller Verbindungen</a> bist du nur genau <strong>einmal</strong> gefahren. Zum Beispiel:<br/> % for my $i (0 .. $#{$review->{single_trips}}) { % my $trip = $review->{single_trips}[$i]; <%= $trip->[0] %> → <%= $trip->[1] %><br/> |