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
f7989cb2
Commit
f7989cb2
authored
Jul 29, 2013
by
Miles Steele
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
move to instructor template directory
parent
f88b266c
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
2 additions
and
5 deletions
+2
-5
lms/djangoapps/instructor/views/instructor_dashboard.py
+2
-5
lms/templates/instructor/instructor_dashboard_2/analytics.html
+0
-0
lms/templates/instructor/instructor_dashboard_2/course_info.html
+0
-0
lms/templates/instructor/instructor_dashboard_2/data_download.html
+0
-0
lms/templates/instructor/instructor_dashboard_2/instructor_dashboard_2.html
+0
-0
lms/templates/instructor/instructor_dashboard_2/membership.html
+0
-0
lms/templates/instructor/instructor_dashboard_2/student_admin.html
+0
-0
No files found.
lms/djangoapps/instructor/views/instructor_dashboard.py
View file @
f7989cb2
"""
Instructor Dashboard Views
TODO add tracking
"""
from
django_future.csrf
import
ensure_csrf_cookie
...
...
@@ -25,13 +23,12 @@ from student.models import CourseEnrollment
@ensure_csrf_cookie
@cache_control
(
no_cache
=
True
,
no_store
=
True
,
must_revalidate
=
True
)
def
instructor_dashboard_2
(
request
,
course_id
):
"""
Display the instructor dashboard for a course.
"""
"""
Display the instructor dashboard for a course.
"""
course
=
get_course_by_id
(
course_id
,
depth
=
None
)
access
=
{
'admin'
:
request
.
user
.
is_staff
,
# an instructor can manage staff lists
'instructor'
:
has_access
(
request
.
user
,
course
,
'instructor'
),
'staff'
:
has_access
(
request
.
user
,
course
,
'staff'
),
'forum_admin'
:
has_forum_access
(
...
...
@@ -57,7 +54,7 @@ def instructor_dashboard_2(request, course_id):
'sections'
:
sections
,
}
return
render_to_response
(
'
courseware
/instructor_dashboard_2/instructor_dashboard_2.html'
,
context
)
return
render_to_response
(
'
instructor
/instructor_dashboard_2/instructor_dashboard_2.html'
,
context
)
"""
...
...
lms/templates/
courseware
/instructor_dashboard_2/analytics.html
→
lms/templates/
instructor
/instructor_dashboard_2/analytics.html
View file @
f7989cb2
File moved
lms/templates/
courseware
/instructor_dashboard_2/course_info.html
→
lms/templates/
instructor
/instructor_dashboard_2/course_info.html
View file @
f7989cb2
File moved
lms/templates/
courseware
/instructor_dashboard_2/data_download.html
→
lms/templates/
instructor
/instructor_dashboard_2/data_download.html
View file @
f7989cb2
File moved
lms/templates/
courseware
/instructor_dashboard_2/instructor_dashboard_2.html
→
lms/templates/
instructor
/instructor_dashboard_2/instructor_dashboard_2.html
View file @
f7989cb2
File moved
lms/templates/
courseware
/instructor_dashboard_2/membership.html
→
lms/templates/
instructor
/instructor_dashboard_2/membership.html
View file @
f7989cb2
File moved
lms/templates/
courseware
/instructor_dashboard_2/student_admin.html
→
lms/templates/
instructor
/instructor_dashboard_2/student_admin.html
View file @
f7989cb2
File moved
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