diff options
Diffstat (limited to 'templates/web/base')
-rw-r--r-- | templates/web/base/around/on_map_list_items.html | 2 | ||||
-rw-r--r-- | templates/web/base/pagination.html | 2 | ||||
-rw-r--r-- | templates/web/base/reports/_list-filters.html | 7 |
3 files changed, 10 insertions, 1 deletions
diff --git a/templates/web/base/around/on_map_list_items.html b/templates/web/base/around/on_map_list_items.html index e1be87754..dddaf6341 100644 --- a/templates/web/base/around/on_map_list_items.html +++ b/templates/web/base/around/on_map_list_items.html @@ -1,4 +1,4 @@ -<ul class="item-list item-list--reports"> +<ul class="item-list item-list--reports"[%' data-show-old-reports="1"' IF num_old_reports > 0 %]> [% IF on_map.size %] [% FOREACH problem IN on_map %] [% INCLUDE 'reports/_list-entry.html' %] diff --git a/templates/web/base/pagination.html b/templates/web/base/pagination.html index 7c13ec9cb..7ae3559ce 100644 --- a/templates/web/base/pagination.html +++ b/templates/web/base/pagination.html @@ -8,6 +8,8 @@ [% IF pager.next_page %] <a class="next" href="[% c.uri_with({ $param => pager.next_page, ajax => undefined }) %][% '#' _ hash IF hash %]">[% loc('Next') %]</a> + [% ELSIF num_old_reports > 0 AND NOT show_old_reports AND page == 'around' %] + <a class="next show_old" href="[% c.uri_with({ $param => pager.current_page, show_old_reports = 1, ajax => undefined }) %][% '#' _ hash IF hash %]">[% loc('Show older') %]</a> [% END %] </p> [% END %] diff --git a/templates/web/base/reports/_list-filters.html b/templates/web/base/reports/_list-filters.html index 61cff8de0..002bfc6c2 100644 --- a/templates/web/base/reports/_list-filters.html +++ b/templates/web/base/reports/_list-filters.html @@ -80,6 +80,13 @@ </select> <input type="submit" name="filter_update" value="[% loc('Go') %]"> </p> + [% IF page == 'around' %] + <p id="show_old_reports_wrapper" class="report-list-filters[% ' hidden' UNLESS num_old_reports > 0 %]"> + <label for="show_old_reports">[% loc('Show older reports') %]</label> + <input type="checkbox" name="show_old_reports" id="show_old_reports" value="1"[% ' checked' IF show_old_reports %]> + <input type="submit" name="filter_update" value="[% loc('Go') %]"> + </p> + [% END %] [% IF use_form_wrapper %] </form> |