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
6604eedb
Commit
6604eedb
authored
Jan 20, 2015
by
Sarina Canelake
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6683 from mitocw/bdero/instructor-dashboard-gitlogs-link
Add gitlogs link to instructor dashboard
parents
15030438
24862edf
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 @
6604eedb
...
@@ -241,6 +241,9 @@ def _section_course_info(course, access):
...
@@ -241,6 +241,9 @@ def _section_course_info(course, access):
message
=
_
(
"Enrollment data is now available in {dashboard_link}."
)
.
format
(
dashboard_link
=
dashboard_link
)
message
=
_
(
"Enrollment data is now available in {dashboard_link}."
)
.
format
(
dashboard_link
=
dashboard_link
)
section_data
[
'enrollment_message'
]
=
message
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
:
try
:
advance
=
lambda
memo
,
(
letter
,
score
):
"{}: {}, "
.
format
(
letter
,
score
)
+
memo
advance
=
lambda
memo
,
(
letter
,
score
):
"{}: {}, "
.
format
(
letter
,
score
)
+
memo
section_data
[
'grade_cutoffs'
]
=
reduce
(
advance
,
course
.
grade_cutoffs
.
items
(),
""
)[:
-
2
]
section_data
[
'grade_cutoffs'
]
=
reduce
(
advance
,
course
.
grade_cutoffs
.
items
(),
""
)[:
-
2
]
...
...
lms/templates/instructor/instructor_dashboard_2/course_info.html
View file @
6604eedb
...
@@ -70,12 +70,21 @@
...
@@ -70,12 +70,21 @@
<b>
${_("No")}
</b>
<b>
${_("No")}
</b>
%endif
%endif
</li>
</li>
<li
class=
"field text is-not-editable"
id=
"field-grade-cutoffs"
>
<li
class=
"field text is-not-editable"
id=
"field-grade-cutoffs"
>
<label
for=
"start-date"
>
${_("Grade Cutoffs:")}
</label>
<label
for=
"start-date"
>
${_("Grade Cutoffs:")}
</label>
<b>
${ section_data['grade_cutoffs'] }
</b>
<b>
${ section_data['grade_cutoffs'] }
</b>
</li>
</li>
</ul>
</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>
</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