summaryrefslogtreecommitdiff
path: root/gnowsys-ndf/gnowsys_ndf/ndf/templates/ndf/header.html
diff options
context:
space:
mode:
authorkatkamrachana <katkam.rachana@gmail.com>2015-06-15 16:24:36 +0530
committerkatkamrachana <katkam.rachana@gmail.com>2015-06-15 16:24:36 +0530
commit9872949824b2a90de4d1ff9068963e6c18872ec1 (patch)
tree119285c1e1f793be48db0553e53d9f8e42872a7d /gnowsys-ndf/gnowsys_ndf/ndf/templates/ndf/header.html
parent54e0fe92d2a5a8449921c1a1f17691d311e4e889 (diff)
parentede6bf410502473a348cf0b0e295fc5bde8a87b9 (diff)
downloadgnowsys-9872949824b2a90de4d1ff9068963e6c18872ec1.tar.gz
Merge branch 'mongokit' of https://github.com/gnowledge/gstudio into mongokit
Diffstat (limited to 'gnowsys-ndf/gnowsys_ndf/ndf/templates/ndf/header.html')
-rw-r--r--gnowsys-ndf/gnowsys_ndf/ndf/templates/ndf/header.html22
1 files changed, 13 insertions, 9 deletions
diff --git a/gnowsys-ndf/gnowsys_ndf/ndf/templates/ndf/header.html b/gnowsys-ndf/gnowsys_ndf/ndf/templates/ndf/header.html
index 30f116ec..38056985 100644
--- a/gnowsys-ndf/gnowsys_ndf/ndf/templates/ndf/header.html
+++ b/gnowsys-ndf/gnowsys_ndf/ndf/templates/ndf/header.html
@@ -1,8 +1,9 @@
-{% load get_nroer_menu get_user_group get_existing_groups_excluded get_profile_pic get_gapps_iconbar from ndf_tags %}
+{% load get_nroer_menu get_user_group get_group_object get_existing_groups_excluded get_profile_pic get_gapps_iconbar from ndf_tags %}
{% load i18n %}
{% load cache %}
+ {% get_group_object groupid as group_object %}
<!-- <div class="contain-to-grid sticky"> -->
<div class="row" id="top-headers">
@@ -29,7 +30,7 @@
<!-- Left Nav Section -->
<!-- add GSTUDIO_SITE_NAME = "NROER" in the local_settings.py file, to check locally -->
- {% cache 3600 top_header request.LANGUAGE_CODE request.path request.user.username %}
+ <!-- {#% cache 3600 top_header request.LANGUAGE_CODE request.path request.user.username %} -->
{% if site.SITE_NAME == "NROER" %}
<!-- NROER level one menu -->
@@ -139,7 +140,7 @@
</ul>
{% endif %}
- {% endcache %}
+ <!-- {#% endcache %} -->
<!-- Closes Left Nav section -->
@@ -194,7 +195,7 @@
</a>
{% else %}
- <a class="user" data-gnow="#aabb44" href="{% url 'dashboard' request.user.pk %}">
+ <a class="user" href="{% url 'dashboard' request.user.pk %}">
{{ user.username }}
</a>
{% endif %}
@@ -253,14 +254,15 @@
<!-- closing of first nav -->
<!-- =========| divider between two nav's/header's |=========== -->
-
<!-- start of second nav or group level header-->
- <div class="contain-to-grid {% if request.path != '/welcome' %}{% if not is_ac_url %}sticky{% endif %}{% endif %} drop-shadow" id="group-level-header">
-
+ <div class="contain-to-grid {% if request.path != '/welcome' %}{% if group_object.edit_policy != 'EDITABLE_MODERATED' %}{% if not is_ac_url %}sticky{% endif %}{% endif %}{% endif %} drop-shadow" id="group-level-header">
+
<nav class="top-bar" data-topbar data-options="sticky_on: large" role="navigation">
+ <!-- don't show this app bar for groups with editable moderated -->
+ {% if "ModeratingGroup" not in group_object.member_of_names_list %}
{% if not is_ac_url %}
{% if request.path != "/welcome" %}
- {% cache 3600 group_header request.LANGUAGE_CODE request.path request.user.username %}
+ <!-- #{#% cache 3600 group_header request.LANGUAGE_CODE request.path request.user.username %} -->
<ul class="title-area">
<li class="name">
<h1><a href="{{site.HOME_PAGE|default_if_none:'/home/'}}"><i class="fi-home"></i></a></h1>
@@ -353,10 +355,12 @@
</ul>
</section>
- {% endcache %}
+ <!-- {#% endcache %} -->
{% endif %} <!-- end of "/welcome" landing page check -->
{% endif %} <!-- end of "accounts" urls check -->
</nav>
+
+ {% endif %} <!-- end of "group's edit_policy" urls check -->
</div>
<!-- end of second nav -->