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
43d6948f
Commit
43d6948f
authored
Aug 08, 2012
by
Victor Shnayder
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix links to student profile pages from gradebook
parent
1903a66b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
3 deletions
+8
-3
lms/djangoapps/courseware/views.py
+2
-1
lms/templates/gradebook.html
+5
-1
lms/urls.py
+1
-1
No files found.
lms/djangoapps/courseware/views.py
View file @
43d6948f
...
...
@@ -84,7 +84,8 @@ def gradebook(request, course_id):
}
for
student
in
enrolled_students
]
return
render_to_response
(
'gradebook.html'
,
{
'students'
:
student_info
,
'course'
:
course
})
return
render_to_response
(
'gradebook.html'
,
{
'students'
:
student_info
,
'course'
:
course
,
'course_id'
:
course_id
})
@login_required
...
...
lms/templates/gradebook.html
View file @
43d6948f
<
%
inherit
file=
"main.html"
/>
<
%!
from
django
.
core
.
urlresolvers
import
reverse
%
>
<
%
namespace
name=
'static'
file=
'static_content.html'
/>
<
%
block
name=
"js_extra"
>
...
...
@@ -59,7 +60,10 @@
%for student in students:
<tr>
<td><a
href=
"/profile/${student['id']}/"
>
${student['username']}
</a></td>
<td><a
href=
"${reverse('student_profile',
kwargs={'course_id' : course_id,
'student_id': student['id']})}"
>
${student['username']}
</a></td>
%for section in student['grade_summary']['section_breakdown']:
${percent_data( section['percent'] )}
%endfor
...
...
lms/urls.py
View file @
43d6948f
...
...
@@ -137,7 +137,7 @@ if settings.COURSEWARE_ENABLED:
'courseware.views.profile'
,
name
=
"profile"
),
# Takes optional student_id for instructor use--shows profile as that student sees it.
url
(
r'^courses/(?P<course_id>[^/]+/[^/]+/[^/]+)/profile/(?P<student_id>[^/]*)/$'
,
'courseware.views.profile'
),
'courseware.views.profile'
,
name
=
"student_profile"
),
# For the instructor
url
(
r'^courses/(?P<course_id>[^/]+/[^/]+/[^/]+)/gradebook$'
,
...
...
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