aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2012-04-23 16:19:23 +0100
committerMatthew Somerville <matthew@mysociety.org>2012-04-23 16:19:23 +0100
commit905b21a5e23f04cd51fcc9d0700a2d859638bb88 (patch)
tree3e8faaa92984f8a4d3df8c5bc783259733cec171
parent79978cebd79325880a7fcbf60b971c1820967cbd (diff)
Only show text tab to relevant users.
-rw-r--r--templates/web/fixmybarangay/around/tabbed_lists.html6
1 files changed, 6 insertions, 0 deletions
diff --git a/templates/web/fixmybarangay/around/tabbed_lists.html b/templates/web/fixmybarangay/around/tabbed_lists.html
index c35f5a7a0..3ca4d7b2b 100644
--- a/templates/web/fixmybarangay/around/tabbed_lists.html
+++ b/templates/web/fixmybarangay/around/tabbed_lists.html
@@ -1,14 +1,20 @@
+[% allow_creation = !c.cobrand.only_authed_can_create || (c.user && c.user.from_council);
+
+IF allow_creation %]
<menu id="problems-nav" class="tab-nav">
<ul>
<li><a href="#current">Problems on the map</a></li>
<li><a href="#message_manager">Problems via text</a></li>
</ul>
</menu>
+[% END %]
<ul id="current" class="issue-list-a tab">
[% INCLUDE "around/on_map_list_items.html" %]
</ul>
+[% IF allow_creation %]
<ul id="message_manager" class="issue-list-a tab">
<li><p>Message Manager texts listed here</p></li>
</ul>
+[% END %]