From 3f0fba71d99bad51b12883f62be1be3a582f4cc9 Mon Sep 17 00:00:00 2001 From: David Ormsbee Date: Tue, 21 Aug 2012 14:29:30 -0400 Subject: [PATCH] Remove non-functioning News tab. Enable Instructor tab from Discussion page --- lms/djangoapps/django_comment_client/forum/views.py | 4 +++- lms/templates/courseware/course_navigation.html | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/lms/djangoapps/django_comment_client/forum/views.py b/lms/djangoapps/django_comment_client/forum/views.py index fd9e18103f..c384980c9c 100644 --- a/lms/djangoapps/django_comment_client/forum/views.py +++ b/lms/djangoapps/django_comment_client/forum/views.py @@ -8,6 +8,7 @@ from django.contrib.auth.models import User from mitxmako.shortcuts import render_to_response, render_to_string from courseware.courses import get_course_with_access +from courseware.access import has_access from urllib import urlencode from django_comment_client.permissions import check_permissions_by_view @@ -156,8 +157,9 @@ def forum_form_discussion(request, course_id): 'content': content, 'recent_active_threads': recent_active_threads, 'trending_tags': trending_tags, + 'staff_access' : has_access(request.user, course, 'staff'), } - print "start rendering.." + # print "start rendering.." return render_to_response('discussion/index.html', context) def render_single_thread(request, discussion_id, course_id, thread_id): diff --git a/lms/templates/courseware/course_navigation.html b/lms/templates/courseware/course_navigation.html index 747472ba31..904b81517b 100644 --- a/lms/templates/courseware/course_navigation.html +++ b/lms/templates/courseware/course_navigation.html @@ -27,7 +27,7 @@ def url_class(url): % endif % if settings.MITX_FEATURES.get('ENABLE_DISCUSSION_SERVICE'):
  • Discussion
  • -
  • News
  • + ##
  • News
  • % endif % if settings.MITX_FEATURES.get('ENABLE_DISCUSSION'):