Commit 92a4ecac authored by Rachana's avatar Rachana

Announce button will only be displayed to gstaff

parent 5f21b5ee
......@@ -68,11 +68,11 @@
</small>
</section>
<section class="medium-3 columns name-section" >
<span><a class="tiny publish-btn button" href="{% url 'create_event_group' group_id 'CourseEventGroup' %}?cnode_id={{node.pk}}">{% trans "Announce" %}</a></span>
{% if node_type == "Course" %}
{% check_is_gstaff groupid request.user as is_gstaff %}
{% if is_gstaff %}
<span><a class="tiny publish-btn button" href="{% url 'create_event_group' group_id 'CourseEventGroup' %}?cnode_id={{node.pk}}">{% trans "Announce" %}</a></span>
<span><a class="tiny button" href="{% url 'create_course_struct' group_id node.pk %}">{% if course_structure_exists %}{% trans "Edit Course Structure" %}{% else %}{% trans "Add Course Structure" %}{% endif %}</a></span>
{% endif %}
{% endif %}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment