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
6e2b4a07
Commit
6e2b4a07
authored
Jan 08, 2013
by
Don Mitchell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added is_empty to model presented to unit.html
parent
76f2ef6f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
cms/djangoapps/contentstore/views.py
+2
-1
cms/templates/unit.html
+4
-1
No files found.
cms/djangoapps/contentstore/views.py
View file @
6e2b4a07
...
...
@@ -271,7 +271,8 @@ def edit_unit(request, location):
component_templates
[
template
.
location
.
category
]
.
append
((
template
.
display_name
,
template
.
location
.
url
(),
'markdown'
in
template
.
metadata
'markdown'
in
template
.
metadata
,
template
.
location
.
name
==
'Empty'
))
components
=
[
...
...
cms/templates/unit.html
View file @
6e2b4a07
...
...
@@ -152,13 +152,16 @@
% for type, templates in sorted(component_templates.items()):
<div
class=
"new-component-templates new-component-${type}"
>
<ul
class=
"new-component-template"
>
% for name, location, has_markdown in templates:
% for name, location, has_markdown
, is_empty
in templates:
<li>
<a
href=
"#"
data-location=
"${location}"
>
<span
class=
"name"
>
${name}
% if has_markdown:
MD
% endif
% if is_empty:
<i>
rasa
</i>
% endif
</span>
</a>
</li>
...
...
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