Commit 78dd5620 by Giulio Gratta

hide Peer Grading tab

parent 9e915213
......@@ -175,7 +175,8 @@ def _peer_grading(tab, user, course, active_page):
def _combined_open_ended_grading(tab, user, course, active_page):
if user.is_authenticated():
link = reverse('open_ended_notifications', args=[course.id])
tab_name = "Open Ended Panel"
# tab_name = "Open Ended Panel"
tab_name = "Hide Tab"
notifications = open_ended_notifications.combined_notifications(course, user)
pending_grading = notifications['pending_grading']
......
......@@ -17,6 +17,7 @@ def url_class(is_active):
<div class="inner-wrapper">
<ol class="course-tabs">
% for tab in get_course_tabs(user, course, active_page):
% if tab.name != "Hide Tab":
<li>
<a href="${tab.link | h}" class="${url_class(tab.is_active)}">
${tab.name | h}
......@@ -28,6 +29,7 @@ def url_class(is_active):
%endif
</a>
</li>
% endif
% endfor
<%block name="extratabs" />
% if masquerade is not UNDEFINED:
......
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