diff options
author | Matthew Somerville <matthew@mysociety.org> | 2014-07-07 16:59:23 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2014-07-08 17:59:17 +0100 |
commit | ba8d2c4ba6f6c0216d618e77d368b640a2b92d1e (patch) | |
tree | 8b9e1a960f91c006606b5e0767a84a400dfc2fb0 /templates/web/base/index.html | |
parent | 8f2c5942e3aa5d3b85e76b7353ab7ada87f97fc6 (diff) |
Rename 'default' web directory to 'base'.
This should reduce confusion with the Default cobrand and override order.
Diffstat (limited to 'templates/web/base/index.html')
-rw-r--r-- | templates/web/base/index.html | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/templates/web/base/index.html b/templates/web/base/index.html new file mode 100644 index 000000000..37bdd8c1e --- /dev/null +++ b/templates/web/base/index.html @@ -0,0 +1,60 @@ +[% INCLUDE 'header.html', title = '' %] + +[% IF error %] + <p class="error">[% error %]</p> +[% END %] + +<p id="expl"> + [% + subhead + = c.cobrand.moniker == 'southampton' + ? '' + : loc('(like graffiti, fly tipping, broken paving slabs, or street lighting)'); + %] + <strong>[% loc('Report, view, or discuss local problems') %]</strong> + [% IF subhead != ' ' %] + <small>[% subhead %]</small> + [% END %] +</p> + +[% TRY %][% INCLUDE 'front/news.html' %][% CATCH file %][% END %] + +[% PROCESS 'around/postcode_form.html' %] + +<div id="front_intro"> + [% INCLUDE 'index-steps.html' %] +</div> + +[% + recent_photos = c.cobrand.recent_photos('front', 3); + probs = c.cobrand.recent(); +%] + +[% IF probs.size || recent_photos.size %] +<div id="front_recent"> + <h2>[% loc('Recently reported problems') %]</h2> + [% IF recent_photos.size %] + <p id="front_photos"> + [% FOREACH p IN recent_photos; + photo = p.get_photo_params; + %] + <a href="/report/[% p.id %]"><img border="0" height="100" + src="[% photo.url_tn %]" alt="[% p.title | html %]" title="[% p.title | html %]"></a> + [% END %] + </p> + [% END %] + + [% IF probs.size %] + <ul id="nearby_lists"> + [% FOREACH p IN probs %] + <li> + <a href="/report/[% p.id %]">[% p.title | html %]</a> + <small>[% prettify_dt( p.confirmed, 1 ) %]</small> + </li> + [% END %] + </ul> + [% END %] +</div> +[% END %] + +[% INCLUDE 'footer.html' %] |