Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
9ecd1eaa
Commit
9ecd1eaa
authored
Aug 21, 2012
by
David Ormsbee
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove non-functioning News tab. Enable Instructor tab from Discussion page
parent
bfeadfd6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
2 deletions
+4
-2
lms/djangoapps/django_comment_client/forum/views.py
+3
-1
lms/templates/courseware/course_navigation.html
+1
-1
No files found.
lms/djangoapps/django_comment_client/forum/views.py
View file @
9ecd1eaa
...
@@ -8,6 +8,7 @@ from django.contrib.auth.models import User
...
@@ -8,6 +8,7 @@ from django.contrib.auth.models import User
from
mitxmako.shortcuts
import
render_to_response
,
render_to_string
from
mitxmako.shortcuts
import
render_to_response
,
render_to_string
from
courseware.courses
import
get_course_with_access
from
courseware.courses
import
get_course_with_access
from
courseware.access
import
has_access
from
urllib
import
urlencode
from
urllib
import
urlencode
from
django_comment_client.permissions
import
check_permissions_by_view
from
django_comment_client.permissions
import
check_permissions_by_view
...
@@ -156,8 +157,9 @@ def forum_form_discussion(request, course_id):
...
@@ -156,8 +157,9 @@ def forum_form_discussion(request, course_id):
'content'
:
content
,
'content'
:
content
,
'recent_active_threads'
:
recent_active_threads
,
'recent_active_threads'
:
recent_active_threads
,
'trending_tags'
:
trending_tags
,
'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
)
return
render_to_response
(
'discussion/index.html'
,
context
)
def
render_single_thread
(
request
,
discussion_id
,
course_id
,
thread_id
):
def
render_single_thread
(
request
,
discussion_id
,
course_id
,
thread_id
):
...
...
lms/templates/courseware/course_navigation.html
View file @
9ecd1eaa
...
@@ -27,7 +27,7 @@ def url_class(url):
...
@@ -27,7 +27,7 @@ def url_class(url):
% endif
% endif
% if settings.MITX_FEATURES.get('ENABLE_DISCUSSION_SERVICE'):
% if settings.MITX_FEATURES.get('ENABLE_DISCUSSION_SERVICE'):
<li
class=
"discussion"
><a
href=
"${reverse('django_comment_client.forum.views.forum_form_discussion', args=[course.id])}"
class=
"${url_class('discussion')}"
>
Discussion
</a></li>
<li
class=
"discussion"
><a
href=
"${reverse('django_comment_client.forum.views.forum_form_discussion', args=[course.id])}"
class=
"${url_class('discussion')}"
>
Discussion
</a></li>
<li
class=
"news"
><a
href=
"${reverse('news', args=[course.id])}"
class=
"${url_class('news')}"
>
News
</a></li>
##
<li
class=
"news"
><a
href=
"${reverse('news', args=[course.id])}"
class=
"${url_class('news')}"
>
News
</a></li>
% endif
% endif
% if settings.MITX_FEATURES.get('ENABLE_DISCUSSION'):
% if settings.MITX_FEATURES.get('ENABLE_DISCUSSION'):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment