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
e2264d07
Commit
e2264d07
authored
Mar 09, 2017
by
Brian Jacobel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Hide '<- Outline >' link in breadcrumbs if using old course view
parent
435a6f52
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
17 additions
and
9 deletions
+17
-9
common/lib/xmodule/xmodule/js/src/sequence/display.js
+2
-1
common/static/common/templates/sequence-breadcrumbs.underscore
+8
-6
lms/templates/courseware/courseware.html
+6
-1
openedx/features/course_experience/templates/course_experience/course-outline-fragment.html
+1
-1
No files found.
common/lib/xmodule/xmodule/js/src/sequence/display.js
View file @
e2264d07
...
...
@@ -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'
)
})
);
...
...
common/static/common/templates/sequence-breadcrumbs.underscore
View file @
e2264d07
<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>
lms/templates/courseware/courseware.html
View file @
e2264d07
...
...
@@ -3,6 +3,8 @@
<
%
namespace
name=
'static'
file=
'/static_content.html'
/>
<
%
def
name=
"online_help_token()"
><
%
return
"
courseware
"
%
></
%
def>
<
%!
import
waffle
from
django
.
utils
.
translation
import
ugettext
as
_
from
django
.
conf
import
settings
...
...
@@ -152,7 +154,10 @@ ${HTML(fragment.foot_html())}
% endif
<section
class=
"course-content"
id=
"course-content"
>
<main
id=
"main"
tabindex=
"-1"
aria-label=
"Content"
>
<div
class=
"path"
></div>
<div
class=
"path"
data-unified-course-view=
"${'true' if waffle.flag_is_active(request, 'unified_course_view') else 'false'}"
></div>
% if getattr(course, 'entrance_exam_enabled') and \
getattr(course, 'entrance_exam_minimum_score_pct') and \
entrance_exam_current_score is not UNDEFINED:
...
...
openedx/features/course_experience/templates/course_experience/course-outline-fragment.html
View file @
e2264d07
...
...
@@ -6,7 +6,7 @@
from
django
.
utils
.
translation
import
ugettext
as
_
%
>
<
%
static:require_module_async
module_name=
"
js/courseware
/course_outline_factory"
class_name=
"CourseOutlineFactory"
>
<
%
static:require_module_async
module_name=
"
course_experience/js
/course_outline_factory"
class_name=
"CourseOutlineFactory"
>
CourseOutlineFactory('.block-tree');
</
%
static:require
_module_async
>
...
...
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