aboutsummaryrefslogtreecommitdiffstats
path: root/templates/web/base/front
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2015-10-05 11:20:09 +0100
committerMatthew Somerville <matthew@mysociety.org>2015-10-07 13:35:21 +0100
commit1eccd97c82cf22bf3979378f85cbc7ec39a66807 (patch)
treec093dff839f28bc506cb5ab5fb9bf31405ec43dc /templates/web/base/front
parent2b9178d071c383f0064ce3e545afb3f4b4ffdabd (diff)
Combine some base/fixmystreet templates.
The aim is to combine base and fixmystreet as much as possible, providing enough template/styling hooks for any cobrand. This commit removes the need for separate base/fixmystreet templates for the front page, almost all of the /around templates, the open graph headers, and the low level item list templates.
Diffstat (limited to 'templates/web/base/front')
-rw-r--r--templates/web/base/front/footer-marketing.html21
-rw-r--r--templates/web/base/front/javascript.html15
-rw-r--r--templates/web/base/front/recent.html23
3 files changed, 59 insertions, 0 deletions
diff --git a/templates/web/base/front/footer-marketing.html b/templates/web/base/front/footer-marketing.html
new file mode 100644
index 000000000..c0c9b4168
--- /dev/null
+++ b/templates/web/base/front/footer-marketing.html
@@ -0,0 +1,21 @@
+ <div class="tablewrapper bordered">
+ <div id="footer-mobileapps">
+ <!--
+ <h4></h4>
+ <p>
+ </p>
+ -->
+ </div>
+
+ <div id="footer-help">
+ <p>
+ [% loc('Powered by <a class="platform-logo" href="http://fixmystreet.org/">FixMyStreet Platform</a>') %]
+ </p>
+ <ul>
+ <li>
+ <h4>[% loc('Are you a developer?') %]</h4>
+ <p>[% loc('Would you like to contribute to FixMyStreet? Our code is open source and <a href="http://fixmystreet.org">available at fixmystreet.org</a>.') %]</p>
+ </li>
+ </ul>
+ </div>
+ </div>
diff --git a/templates/web/base/front/javascript.html b/templates/web/base/front/javascript.html
new file mode 100644
index 000000000..13aa5216c
--- /dev/null
+++ b/templates/web/base/front/javascript.html
@@ -0,0 +1,15 @@
+[%# Assume using OpenStreetMap maps %]
+<script>
+yepnope.addPrefix( 'preload', function ( resource ) {
+ resource.noexec = true;
+ return resource;
+});
+Modernizr.load({
+ load: [
+ "preload![% version('/js/OpenLayers.fixmystreet.js') %]",
+ "preload![% version('/js/map-OpenLayers.js') %]",
+ "preload![% version('/js/map-OpenStreetMap.js') %]",
+ "preload![% version('/js/jquery.ba-hashchange.min.js') %]"
+ ]
+});
+</script>
diff --git a/templates/web/base/front/recent.html b/templates/web/base/front/recent.html
new file mode 100644
index 000000000..5275cef43
--- /dev/null
+++ b/templates/web/base/front/recent.html
@@ -0,0 +1,23 @@
+[%
+ recent_photos = c.cobrand.recent_photos('front', 5);
+%]
+
+[% IF recent_photos.size %]
+<div id="front-recently">
+ <h2>
+ [%- IF c.cobrand.moniker == 'hart' %]
+ Recently reported
+ [% ELSE %]
+ [% loc('Recently reported problems') %]
+ [% END -%]
+ </h2>
+
+ <section class="full-width">
+ <ul class="issue-list-a">
+ [% FOREACH problem IN recent_photos %]
+ [% INCLUDE 'report/_item.html', no_fixed = 1 %]
+ [% END %]
+ </ul>
+ </section>
+</div>
+[% END %]