Hide '<- Outline >' link in breadcrumbs if using old course view
This commit is contained in:
committed by
Diana Huang
parent
a3f32fea5a
commit
574d070392
@@ -274,7 +274,8 @@
|
||||
edx.HtmlUtils.template($('#sequence-breadcrumbs-tpl').text())({
|
||||
courseId: this.el.parent().data('course-id'),
|
||||
blockId: this.id,
|
||||
pathText: this.el.find('.nav-item.active').data('path')
|
||||
pathText: this.el.find('.nav-item.active').data('path'),
|
||||
unifiedCourseView: this.path.data('unified-course-view')
|
||||
})
|
||||
);
|
||||
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
<a href="<%- '/courses/' + courseId + '/course/#' + blockId %>">
|
||||
<span class="fa fa-arrow-circle-left" aria-hidden="true" aria-describedby="outline-description"></span>
|
||||
<span class="sr-only" id="outline-description"><%- gettext('Return to course outline') %></span>
|
||||
<b><%- gettext('Outline') %></b>
|
||||
</a>
|
||||
<span> > </span>
|
||||
<% if (unifiedCourseView) { %>
|
||||
<a href="<%- '/courses/' + courseId + '/course/#' + blockId %>">
|
||||
<span class="fa fa-arrow-circle-left" aria-hidden="true" aria-describedby="outline-description"></span>
|
||||
<span class="sr-only" id="outline-description"><%- gettext('Return to course outline') %></span>
|
||||
<b><%- gettext('Outline') %></b>
|
||||
</a>
|
||||
<span> > </span>
|
||||
<% } %>
|
||||
<span class="position"><%- pathText %></span>
|
||||
|
||||
Reference in New Issue
Block a user