Skip to content
Snippets Groups Projects
Unverified Commit ef1b2425 authored by Michael Roytman's avatar Michael Roytman Committed by GitHub
Browse files

Merge pull request #18441 from edx/mroytman/EDUCATOR-3028-checklist-link-from-tools-dropdown

Add Checklists to Tools dropdown in Studio
parents 8b1aad08 f0b18a7a
No related branches found
No related tags found
No related merge requests found
...@@ -386,7 +386,9 @@ body.course.view-import .nav-course-tools-import, ...@@ -386,7 +386,9 @@ body.course.view-import .nav-course-tools-import,
body.course.view-export .nav-course-tools-export, body.course.view-export .nav-course-tools-export,
body.course.view-export-git .nav-course-tools-export-git, body.course.view-export-git .nav-course-tools-export-git,
body.course.view-team .nav-library-settings .title, body.course.view-team .nav-library-settings .title,
body.course.view-team .nav-library-settings-team { body.course.view-team .nav-library-settings-team,
body.course.view-checklists .nav-course-tools .title,
body.course.view-checklists .nav-course-tools-checklists {
color: theme-color("primary"); color: theme-color("primary");
a { a {
......
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
from openedx.core.djangolib.js_utils import js_escaped_string, dump_js_escaped_json from openedx.core.djangolib.js_utils import js_escaped_string, dump_js_escaped_json
%> %>
<%block name="title">${_("Checklists")}</%block> <%block name="title">${_("Checklists")}</%block>
<%block name="bodyclass">is-signedin course</%block> <%block name="bodyclass">is-signedin course view-checklists</%block>
<%namespace name='static' file='static_content.html'/> <%namespace name='static' file='static_content.html'/>
......
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
from django.urls import reverse from django.urls import reverse
from django.utils.translation import ugettext as _ from django.utils.translation import ugettext as _
from openedx.core.djangoapps.lang_pref.api import header_language_selector_is_enabled, released_languages from openedx.core.djangoapps.lang_pref.api import header_language_selector_is_enabled, released_languages
from cms.djangoapps.contentstore.config.waffle_utils import should_show_checklists_page
%> %>
<div class="wrapper-header wrapper" id="view-top"> <div class="wrapper-header wrapper" id="view-top">
<header class="primary" role="banner"> <header class="primary" role="banner">
...@@ -34,6 +35,8 @@ ...@@ -34,6 +35,8 @@
certificates_url = '' certificates_url = ''
if settings.FEATURES.get("CERTIFICATES_HTML_VIEW") and context_course.cert_html_view_enabled: if settings.FEATURES.get("CERTIFICATES_HTML_VIEW") and context_course.cert_html_view_enabled:
certificates_url = reverse('certificates_list_handler', kwargs={'course_key_string': unicode(course_key)}) certificates_url = reverse('certificates_list_handler', kwargs={'course_key_string': unicode(course_key)})
checklists_url = reverse('checklists_handler', kwargs={'course_key_string': unicode(course_key)})
%> %>
<h2 class="info-course"> <h2 class="info-course">
<span class="sr">${_("Current Course:")}</span> <span class="sr">${_("Current Course:")}</span>
...@@ -124,6 +127,11 @@ ...@@ -124,6 +127,11 @@
<a href="${reverse('export_git', kwargs=dict(course_key_string=unicode(course_key)))}">${_("Export to Git")}</a> <a href="${reverse('export_git', kwargs=dict(course_key_string=unicode(course_key)))}">${_("Export to Git")}</a>
</li> </li>
% endif % endif
% if should_show_checklists_page(request.user):
<li class="nav-item nav-course-tools-checklists">
<a href="${checklists_url}">${_("Checklists")}</a>
</li>
%endif
</ul> </ul>
</div> </div>
</div> </div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment