Skip to content

Commit

Permalink
fix: missing and broken waffle flag links (#32587)
Browse files Browse the repository at this point in the history
  • Loading branch information
KristinAoki authored Jun 29, 2023
1 parent 79a4339 commit 08e633d
Showing 1 changed file with 22 additions and 1 deletion.
23 changes: 22 additions & 1 deletion cms/templates/widgets/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,16 @@ <h3 class="title"><span class="label"><span class="label-prefix sr">${_("Course"
<a href="${get_pages_and_resources_url(course_key)}">${_("Pages & Resources")}</a>
</li>
% endif
%if not files_uploads_mfe_enabled:
<li class="nav-item nav-course-courseware-uploads">
<a href="${assets_url}">${_("Files & Uploads")}</a>
</li>
%endif
%if files_uploads_mfe_enabled:
<li class="nav-item nav-course-courseware-uploads">
<a href="${get_files_uploads_url(course_key)}">${_("Files & Media")}</a>
</li>
%endif
% if not pages_and_resources_mfe_enabled:
<li class="nav-item nav-course-courseware-textbooks">
<a href="${textbooks_url}">${_("Textbooks")}</a>
Expand Down Expand Up @@ -199,7 +206,7 @@ <h3 class="title"><span class="label"><span class="label-prefix sr">${_("Course"
% endif
% if has_studio_advanced_settings_access(request.user) and advanced_settings_mfe_enabled:
<li class="nav-item nav-course-settings-advanced">
<a href="${get_advanced_settings_url}">${_("Advanced Settings")}</a>
<a href="${get_advanced_settings_url(course_key)}">${_("Advanced Settings")}</a>
</li>
% endif
% if certificates_url:
Expand All @@ -222,12 +229,26 @@ <h3 class="title"><span class="label">${_("Tools")}</span> <span class="icon fa
<div class="wrapper wrapper-nav-sub">
<div class="nav-sub">
<ul>
% if not import_mfe_enabled:
<li class="nav-item nav-course-tools-import">
<a href="${import_url}">${_("Import")}</a>
</li>
% endif
% if import_mfe_enabled:
<li class="nav-item nav-course-tools-import">
<a href="${get_import_url(course_key)}">${_("Import")}</a>
</li>
% endif
% if not export_mfe_enabled:
<li class="nav-item nav-course-tools-export">
<a href="${export_url}">${_("Export")}</a>
</li>
% endif
% if export_mfe_enabled:
<li class="nav-item nav-course-tools-import">
<a href="${get_export_url(course_key)}">${_("Import")}</a>
</li>
% endif
% if toggles.EXPORT_GIT.is_enabled() and context_course.giturl:
<li class="nav-item nav-course-tools-export-git">
<a href="${reverse('export_git', kwargs=dict(course_key_string=six.text_type(course_key)))}">${_("Export to Git")}</a>
Expand Down

0 comments on commit 08e633d

Please sign in to comment.