diff options
Diffstat (limited to 'templates/web/default/around')
-rwxr-xr-x | templates/web/default/around/_report_banner.html | 10 | ||||
-rwxr-xr-x | templates/web/default/around/_updates.html | 12 | ||||
-rw-r--r-- | templates/web/default/around/around_index.html | 24 | ||||
-rw-r--r-- | templates/web/default/around/around_map_list_items.html | 18 | ||||
-rwxr-xr-x | templates/web/default/around/display_location.html | 110 | ||||
-rw-r--r-- | templates/web/default/around/location_error.html | 1 | ||||
-rw-r--r-- | templates/web/default/around/on_map_list_items.html | 15 | ||||
-rw-r--r-- | templates/web/default/around/postcode_form.html | 13 | ||||
-rwxr-xr-x | templates/web/default/around/tabbed_lists.html | 23 |
9 files changed, 0 insertions, 226 deletions
diff --git a/templates/web/default/around/_report_banner.html b/templates/web/default/around/_report_banner.html deleted file mode 100755 index 024fe08d9..000000000 --- a/templates/web/default/around/_report_banner.html +++ /dev/null @@ -1,10 +0,0 @@ -<p id="text_map" class="banner"> - [% loc( 'To <strong>report a problem</strong>, click on the map at the correct location.' ) %] - [% - tprintf( - loc("<small>If you cannot see the map, <a href='%s' rel='nofollow'>skip this step</a>.</small>"), - url_skip - ) - %] - <span id="text_map_arrow"></span> -</p> diff --git a/templates/web/default/around/_updates.html b/templates/web/default/around/_updates.html deleted file mode 100755 index 8110a6c7c..000000000 --- a/templates/web/default/around/_updates.html +++ /dev/null @@ -1,12 +0,0 @@ -<h1>[% loc('Problems in this area') %]</h1> - -<p id="alert_links_area"> - <a id="email_alert" rel="nofollow" href="[% email_url | html %]"> - [%- loc('Email me new local problems') -%] -</a> | - <a href="[% rss_url | html %]" id="rss_alert"> - <span>[% rss_alt %]</span> - <img src="/i/feed.png" width="16" height="16" title="[% rss_title %]" alt="[% rss_alt %]" border="0" style="vertical-align: top"> - </a> -</p> - diff --git a/templates/web/default/around/around_index.html b/templates/web/default/around/around_index.html deleted file mode 100644 index 087abf65f..000000000 --- a/templates/web/default/around/around_index.html +++ /dev/null @@ -1,24 +0,0 @@ -[% INCLUDE 'header.html', title => loc('Reporting a problem'), bodyclass = 'mappage' %] - -<form action="[% c.uri_for('/around') %]" method="get" name="mapForm" id="mapForm"> - <div id="side-form"> - <div id="report-a-problem-main"> - [% INCLUDE 'around/postcode_form.html' %] - - [% IF location_error %] - [% INCLUDE 'around/location_error.html' %] - [% END %] - - [% IF possible_location_matches %] - <p>[% loc('We found more than one match for that location. We show up to ten matches, please try a different search if yours is not here.') %]</p> - <ul class="pc_alternatives"> - [% FOREACH match IN possible_location_matches %] - <li><a href="/around?latitude=[% match.latitude | uri %];longitude=[% match.longitude | uri %]">[% match.address | html %]</a></li> - [% END %] - </ul> - [% END %] - </div> - </div> -</form> - -[% INCLUDE 'footer.html' %] diff --git a/templates/web/default/around/around_map_list_items.html b/templates/web/default/around/around_map_list_items.html deleted file mode 100644 index da75561b5..000000000 --- a/templates/web/default/around/around_map_list_items.html +++ /dev/null @@ -1,18 +0,0 @@ -[% IF around_map.size %] - [% FOREACH p IN around_map %] - - [% dist = tprintf("%.1f", (p.distance || 0) ) %] - - <li> - <a href="[% c.uri_for('/report', p.problem.id ) %]">[% p.problem.title | html %]</a> - <small>[% prettify_dt( p.problem.confirmed, 1 ) %], [% dist %]km</small> - [% IF p.problem.is_fixed %] - <small>[% loc('(fixed)') %]</small> - [% ELSIF p.problem.is_closed %] - <small>[% loc('(closed)') %]</small> - [% END %] - </li> - [% END %] -[% ELSE %] - <li>[% loc('No problems found.') %]</li> -[% END %] diff --git a/templates/web/default/around/display_location.html b/templates/web/default/around/display_location.html deleted file mode 100755 index c8c6935de..000000000 --- a/templates/web/default/around/display_location.html +++ /dev/null @@ -1,110 +0,0 @@ -[% - - rss_alt = loc('RSS feed'); - rss_title = loc('RSS feed of recent local problems'); - - rss_url - = pc - ? c.uri_for( "/rss/pc", pc ) - : c.uri_for( "/rss/l/$short_latitude,$short_longitude" ); - - email_url = c.uri_for( - '/alert/list', - { - lat => short_latitude, - lon => short_longitude, - feed => "local:$short_latitude:$short_longitude", - } - ); - - url_skip = c.uri_for( - '/report/new', - { - pc => pc - latitude => short_latitude, - longitude => short_longitude, - skipped => 1, - } - ); - - PROCESS "maps/${map.type}.html"; - - SET rss = [ loc('Recent local problems, FixMyStreet'), rss_url ] IF c.cobrand.moniker != 'emptyhomes'; - INCLUDE 'header.html', - title => loc('Viewing a location') - bodyclass => 'mappage', - robots => 'noindex,nofollow'; - - allow_creation = !c.cobrand.only_authed_can_create || (c.user && c.user.from_body); -%] - -[% IF allow_creation %] -<form action="[% c.uri_for('/report/new') %]" method="post" name="mapForm" id="mapForm" enctype="multipart/form-data" class="validate"> - [% IF c.req.params.map_override %] - <input type="hidden" name="map_override" value="[% c.req.params.map_override | html %]"> - [% END %] - <input type="hidden" name="pc" value="[% pc | html %]"> - - <input type="hidden" name="latitude" id="fixmystreet.latitude" value="[% short_latitude | html %]"> - <input type="hidden" name="longitude" id="fixmystreet.longitude" value="[% short_longitude | html %]"> -[% END %] - - [% map_html %] - - [% IF c.cobrand.moniker != 'emptyhomes' %] - <p id='sub_map_links'> - [% IF c.cobrand.moniker == 'zurich' %] - <a class="hidden-nojs" id="map_layer_toggle" href="">Stadtplan</a> - [% END %] - [% IF c.req.params.no_pins %] - <a id='hide_pins_link' rel='nofollow' href='[% c.uri_with( { no_pins => 0 } ) %]'>[% loc('Show pins') %]</a> - [% ELSE %] - <a id='hide_pins_link' rel='nofollow' href='[% c.uri_with( { no_pins => 1 } ) %]'>[% loc('Hide pins') %]</a> - [% END %] - [% IF c.cobrand.country == 'GB' || c.cobrand.country == 'NO' %] - <span class="hidden">|</span> - [% IF c.req.params.all_pins %] - <a id='all_pins_link' rel='nofollow' href='[% c.uri_with( { no_pins => undef, all_pins => undef } ) %]'>[% loc('Hide old') %]</a> - [% ELSE %] - <a id='all_pins_link' rel='nofollow' href='[% c.uri_with( { no_pins => undef, all_pins => 1 } ) %]'>[% loc('Show old') %]</a> - [% END %] - [% END %] - </p> - [% END %] - - </div> - - - - - <div id="side"> - - [% IF allow_creation %] - [% INCLUDE 'around/_report_banner.html' %] - [% TRY %][% INCLUDE 'around/extra_text.html' %][% CATCH file %][% END %] - [% END %] - - [% IF c.cobrand.moniker != 'emptyhomes' %] - [% INCLUDE 'around/_updates.html' %] - - <section class="full-width"> - [% INCLUDE "around/tabbed_lists.html" %] - </section> - [% END %] - </div> - - [% IF allow_creation %] - <div style="display:none" id="side-form"> - [% INCLUDE "report/new/fill_in_details_form.html" - js = 1, - report.used_map = 1 - report.name = c.user.name - %] - </div> - [% END %] - -[% IF allow_creation %] -</form> -[% END %] - -[% INCLUDE 'footer.html' %] diff --git a/templates/web/default/around/location_error.html b/templates/web/default/around/location_error.html deleted file mode 100644 index 9b907b64b..000000000 --- a/templates/web/default/around/location_error.html +++ /dev/null @@ -1 +0,0 @@ -<p class="error">[% location_error %]</p> diff --git a/templates/web/default/around/on_map_list_items.html b/templates/web/default/around/on_map_list_items.html deleted file mode 100644 index 70a071406..000000000 --- a/templates/web/default/around/on_map_list_items.html +++ /dev/null @@ -1,15 +0,0 @@ -[% IF on_map.size %] - [% FOREACH p IN on_map %] - <li> - <a href="[% c.uri_for('/report', p.id ) %]">[% p.title | html %]</a> - <small>[% prettify_dt( p.confirmed, 1 ) %]</small> - [% IF p.is_fixed %] - <small>[% loc('(fixed)') %]</small> - [% ELSIF p.is_closed %] - <small>[% loc('(closed)') %]</small> - [% END %] - </li> - [% END %] -[% ELSE %] - <li>[% loc('No problems have been reported yet.') %]</li> -[% END %] diff --git a/templates/web/default/around/postcode_form.html b/templates/web/default/around/postcode_form.html deleted file mode 100644 index f58d7285d..000000000 --- a/templates/web/default/around/postcode_form.html +++ /dev/null @@ -1,13 +0,0 @@ -[% - question = c.cobrand.enter_postcode_text || loc('Enter a nearby street name and area'); -%] - -<form action="[% c.uri_for('/around') %]" method="get" name="postcodeForm" id="postcodeForm"> - <label for="pc">[% question %]:</label> - <span><input type="text" name="pc" value="[% pc | html %]" id="pc" size="10" maxlength="200"> - <input type="submit" value="[% loc('Go') %]" id="sub"> - </span> - [% IF partial_token %] - <input type="hidden" name="partial" value="[% partial_token.token %]"> - [% END %] -</form> diff --git a/templates/web/default/around/tabbed_lists.html b/templates/web/default/around/tabbed_lists.html deleted file mode 100755 index 4ad7b35fc..000000000 --- a/templates/web/default/around/tabbed_lists.html +++ /dev/null @@ -1,23 +0,0 @@ -<div id="nearby_lists"> - - <h2>[% loc('Reports on and around the map') %]</h2> - - <ul id="current"> - [% INCLUDE "around/on_map_list_items.html" %] - </ul> - - <h2> - [% - tprintf( - loc( 'Closest nearby problems <small>(within %skm)</small>' ), - distance - ) - %] - </h2> - - <ul id="current_near"> - [% INCLUDE "around/around_map_list_items.html" %] - </ul> - -</div> - |