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
2fe0bf5a
Commit
2fe0bf5a
authored
Feb 18, 2016
by
Andrew Gaylard
Committed by
Jonathan Piacenti
Mar 04, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix TNL-3429.
parent
2b880d2d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
7 deletions
+7
-7
cms/djangoapps/contentstore/views/item.py
+2
-2
cms/templates/js/course-outline.underscore
+2
-2
cms/templates/js/unit-outline.underscore
+1
-1
cms/templates/js/xblock-outline.underscore
+2
-2
No files found.
cms/djangoapps/contentstore/views/item.py
View file @
2fe0bf5a
...
...
@@ -886,7 +886,7 @@ def create_xblock_info(xblock, data=None, metadata=None, include_ancestor_info=F
xblock_info
=
{
"id"
:
unicode
(
xblock
.
location
),
"display_name"
:
xblock
.
display_name_with_default
_escaped
,
"display_name"
:
xblock
.
display_name_with_default
,
"category"
:
xblock
.
category
,
"edited_on"
:
get_default_time_display
(
xblock
.
subtree_edited_on
)
if
xblock
.
subtree_edited_on
else
None
,
"published"
:
published
,
...
...
@@ -1158,4 +1158,4 @@ def _xblock_type_and_display_name(xblock):
"""
return
_
(
'{section_or_subsection} "{display_name}"'
)
.
format
(
section_or_subsection
=
xblock_type_display_name
(
xblock
),
display_name
=
xblock
.
display_name_with_default
_escaped
)
display_name
=
xblock
.
display_name_with_default
)
cms/templates/js/course-outline.underscore
View file @
2fe0bf5a
...
...
@@ -85,11 +85,11 @@ if (is_proctored_exam) {
<% } %>
<% if (xblockInfo.isVertical()) { %>
<span class="unit-title item-title">
<a href="<%= xblockInfo.get('studio_url') %>"><%
=
xblockInfo.get('display_name') %></a>
<a href="<%= xblockInfo.get('studio_url') %>"><%
-
xblockInfo.get('display_name') %></a>
</span>
<% } else { %>
<span class="wrapper-<%= xblockType %>-title wrapper-xblock-field incontext-editor is-editable" data-field="display_name" data-field-display-name="<%= gettext("Display Name") %>">
<span class="<%= xblockType %>-title item-title xblock-field-value incontext-editor-value"><%
=
xblockInfo.get('display_name') %></span>
<span class="<%= xblockType %>-title item-title xblock-field-value incontext-editor-value"><%
-
xblockInfo.get('display_name') %></span>
</span>
<% } %>
</h3>
...
...
cms/templates/js/unit-outline.underscore
View file @
2fe0bf5a
...
...
@@ -4,7 +4,7 @@
<div class="<%= xblockType %>-header">
<h3 class="<%= xblockType %>-header-details">
<span class="<%= xblockType %>-title item-title">
<a href="<%= xblockInfo.get('studio_url') %>"><%
=
xblockInfo.get('display_name') %></a>
<a href="<%= xblockInfo.get('studio_url') %>"><%
-
xblockInfo.get('display_name') %></a>
</span>
</h3>
</div>
...
...
cms/templates/js/xblock-outline.underscore
View file @
2fe0bf5a
...
...
@@ -17,10 +17,10 @@
<% } %>
<% if (xblockInfo.get('studio_url') && xblockInfo.get('category') !== 'chapter') { %>
<a href="<%= xblockInfo.get('studio_url') %>"><%
=
xblockInfo.get('display_name') %></a>
<a href="<%= xblockInfo.get('studio_url') %>"><%
-
xblockInfo.get('display_name') %></a>
<% } else { %>
<span class="wrapper-xblock-field is-editable" data-field="display_name">
<span class="xblock-field-value"><%
=
xblockInfo.get('display_name') %></span>
<span class="xblock-field-value"><%
-
xblockInfo.get('display_name') %></span>
</span>
<% } %>
</h3>
...
...
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