aboutsummaryrefslogtreecommitdiffstats
path: root/templates/web/base/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/web/base/index.html')
-rw-r--r--templates/web/base/index.html60
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' %]