[% FOREACH p = problems.all %]
    [% INCLUDE problem %]
[% END %]

[% BLOCK problem %]
    [% "<ul class='issue-list-a full-width'>" IF loop.first %]
    [% INCLUDE 'reports/_list-entry.html', problem = p, no_fixed =1 %]
    [% "</ul>" IF loop.last %]
[% END %]

[% FOREACH p = problems.all %]
    [% INCLUDE problem %]
[% END %]

[% BLOCK problem %]
    [% "<ul class='issue-list-a full-width'>" IF loop.first %]
    [% INCLUDE 'reports/_list-entry.html', problem = p, no_fixed =1 %]
    [% "</ul>" IF loop.last %]
[% END %]

[% IF ! problems.size %]
<!-- Preserve behaviour of map filters despite map not being shown -->
<script type="text/javascript">
    (function($) {
        $(function() {
            $(".report-list-filters [type=submit]").hide();
            $(".report-list-filters select").change(function() {
                $(this).closest("form").submit();
            });
        })
    })(window.jQuery);
</script>
[% END %]

Refresh map as soon as filters are changed on empty /my
[Oxfordshire] Refresh map as soon as filters are changed on empty /my

By default the map JS doesn't get included on /my if the map is empty, so
there's some slight duplication of the JS from the previous
commit to make the filters submit the form as soon as they're changed.

This should be included in the base template if/when the filters make their
way there.
