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
24862edf
Commit
24862edf
authored
Jan 16, 2015
by
Brandon DeRosier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add gitlogs link to instructor dashboard
parent
15030438
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
1 deletions
+13
-1
lms/djangoapps/instructor/views/instructor_dashboard.py
+3
-0
lms/templates/instructor/instructor_dashboard_2/course_info.html
+10
-1
No files found.
lms/djangoapps/instructor/views/instructor_dashboard.py
View file @
24862edf
...
...
@@ -241,6 +241,9 @@ def _section_course_info(course, access):
message
=
_
(
"Enrollment data is now available in {dashboard_link}."
)
.
format
(
dashboard_link
=
dashboard_link
)
section_data
[
'enrollment_message'
]
=
message
if
settings
.
FEATURES
.
get
(
'ENABLE_SYSADMIN_DASHBOARD'
):
section_data
[
'detailed_gitlogs_url'
]
=
reverse
(
'gitlogs_detail'
,
kwargs
=
{
'course_id'
:
unicode
(
course_key
)})
try
:
advance
=
lambda
memo
,
(
letter
,
score
):
"{}: {}, "
.
format
(
letter
,
score
)
+
memo
section_data
[
'grade_cutoffs'
]
=
reduce
(
advance
,
course
.
grade_cutoffs
.
items
(),
""
)[:
-
2
]
...
...
lms/templates/instructor/instructor_dashboard_2/course_info.html
View file @
24862edf
...
...
@@ -70,12 +70,21 @@
<b>
${_("No")}
</b>
%endif
</li>
<li
class=
"field text is-not-editable"
id=
"field-grade-cutoffs"
>
<label
for=
"start-date"
>
${_("Grade Cutoffs:")}
</label>
<b>
${ section_data['grade_cutoffs'] }
</b>
</li>
</ul>
%if settings.FEATURES.get('ENABLE_SYSADMIN_DASHBOARD', ''):
<p>
## Translators: git is a version-control system; see http://git-scm.com/about
${_("View detailed Git import logs for this course {link_start}by clicking here{link_end}.").format(
link_start='
<a
href=
"{}"
>
'.format(section_data['detailed_gitlogs_url']),
link_end='
</a>
'
)}
</p>
%endif
</div>
...
...
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