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
7cab3869
Commit
7cab3869
authored
Feb 03, 2014
by
David Baumgold
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fall back on category is display_name is empty or unset
parent
c43d36b7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
cms/djangoapps/contentstore/views/item.py
+1
-1
cms/templates/component.html
+1
-1
No files found.
cms/djangoapps/contentstore/views/item.py
View file @
7cab3869
...
...
@@ -114,7 +114,7 @@ def xblock_handler(request, tag=None, package_id=None, branch=None, version_guid
return
render_to_response
(
'component.html'
,
{
'preview'
:
get_preview_html
(
request
,
component
),
'editor'
:
content
,
'
display_name'
:
component
.
display_name
,
'
label'
:
component
.
display_name
or
component
.
category
,
})
elif
request
.
method
==
'DELETE'
:
delete_children
=
str_to_bool
(
request
.
REQUEST
.
get
(
'recurse'
,
'False'
))
...
...
cms/templates/component.html
View file @
7cab3869
...
...
@@ -28,7 +28,7 @@
</div>
<div
class=
"wrapper wrapper-component-action-header"
>
<div
class=
"component-header"
>
${
display_name
}
${
label
}
</div>
<ul
class=
"component-actions"
>
<li
class=
"action-item action-edit"
>
...
...
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