diff options
author | Daniel Friesel <derf@finalrewind.org> | 2022-12-26 15:35:33 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2022-12-26 15:35:33 +0100 |
commit | f12bec530a86c38c707648f0201fda265f78e440 (patch) | |
tree | 6fe7b894de4794b2dd5a6dcffc622a63bc0656b9 /templates | |
parent | d0973a9d8d1bde4db2f4ed365bfa0177cdf82dd8 (diff) |
yearly/monthly history: return 404 for invalid dates
Diffstat (limited to 'templates')
-rw-r--r-- | templates/history_by_year.html.ep | 19 |
1 files changed, 18 insertions, 1 deletions
diff --git a/templates/history_by_year.html.ep b/templates/history_by_year.html.ep index a112258..9f9b022 100644 --- a/templates/history_by_year.html.ep +++ b/templates/history_by_year.html.ep @@ -3,7 +3,24 @@ % if (stash('statistics')) { %= include '_history_stats', stats => stash('statistics'); % } -% + +<div class="row"> + % if (stash('have_review')) { + <div class="col s12 m12 l5 center-align"> + <a href="/history/map?filter_after=1.1.<%= $year %>&filter_before=31.12.<%= $year %>" class="waves-effect waves-light btn"><i class="material-icons left" aria-hidden="true">map</i> Karte</a> + </div> + <div class="col s12 m12 l2"> </div> + <div class="col s12 m12 l5 center-align"> + <a href="/history/<%= $year %>/review" class="waves-effect waves-light btn"><i class="material-icons left" aria-hidden="true">camera_roll</i> Rückblick</a> + </div> + % } + % else { + <div class="col s12 m12 l12 center-align"> + <a href="/history/map?filter_after=1.1.<%= $year %>&filter_before=31.12.<%= $year %>" class="waves-effect waves-light btn"><i class="material-icons left" aria-hidden="true">map</i> Karte</a> + </div> + % } +</div> + %= include '_history_months_for_year'; % if (stash('journeys')) { |