aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2012-12-20 18:15:39 +0000
committerStruan Donald <struan@exo.org.uk>2012-12-20 18:15:39 +0000
commit247e74c3890367ce1901816a303b3208794ebdfc (patch)
treed90155b22c35513e1987501481082cd55498630a
parent0ce436a8796a025924c18ac227b711f2cf2f49f9 (diff)
limit viewing of reports to logged in council users
-rw-r--r--templates/web/seesomething/report/display.html20
1 files changed, 20 insertions, 0 deletions
diff --git a/templates/web/seesomething/report/display.html b/templates/web/seesomething/report/display.html
new file mode 100644
index 000000000..0068c66c1
--- /dev/null
+++ b/templates/web/seesomething/report/display.html
@@ -0,0 +1,20 @@
+[%
+ PROCESS "report/photo-js.html";
+ PROCESS "maps/${map.type}.html";
+
+ INCLUDE 'header.html'
+ robots = 'index, nofollow',
+ bobyclass = 'mappage',
+ no_version_css => 1;
+%]
+
+[% IF !c.user_exists OR !c.user.from_council %]
+Reports to this site are private
+[% ELSE %]
+[% map_html %]
+
+</div>
+[% INCLUDE 'report/_main.html' %]
+[% END %]
+
+[% INCLUDE 'footer.html' %]