diff options
author | Matthew Somerville <matthew@mysociety.org> | 2012-04-23 16:19:23 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2012-04-23 16:19:23 +0100 |
commit | 905b21a5e23f04cd51fcc9d0700a2d859638bb88 (patch) | |
tree | 3e8faaa92984f8a4d3df8c5bc783259733cec171 | |
parent | 79978cebd79325880a7fcbf60b971c1820967cbd (diff) |
Only show text tab to relevant users.
-rw-r--r-- | templates/web/fixmybarangay/around/tabbed_lists.html | 6 |
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 %] |