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
c443cd83
Commit
c443cd83
authored
Jan 07, 2013
by
cahrens
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'feature/cas/speed-editor' of github.com:MITx/mitx into feature/cas/speed-editor
parents
47409654
12abdbce
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
cms/djangoapps/contentstore/views.py
+1
-0
cms/templates/unit.html
+6
-2
No files found.
cms/djangoapps/contentstore/views.py
View file @
c443cd83
...
@@ -271,6 +271,7 @@ def edit_unit(request, location):
...
@@ -271,6 +271,7 @@ def edit_unit(request, location):
component_templates
[
template
.
location
.
category
]
.
append
((
component_templates
[
template
.
location
.
category
]
.
append
((
template
.
display_name
,
template
.
display_name
,
template
.
location
.
url
(),
template
.
location
.
url
(),
'markdown'
in
template
.
metadata
))
))
components
=
[
components
=
[
...
...
cms/templates/unit.html
View file @
c443cd83
...
@@ -152,10 +152,14 @@
...
@@ -152,10 +152,14 @@
% for type, templates in sorted(component_templates.items()):
% for type, templates in sorted(component_templates.items()):
<div
class=
"new-component-templates new-component-${type}"
>
<div
class=
"new-component-templates new-component-${type}"
>
<ul
class=
"new-component-template"
>
<ul
class=
"new-component-template"
>
% for name, location in templates:
% for name, location
, has_markdown
in templates:
<li>
<li>
<a
href=
"#"
data-location=
"${location}"
>
<a
href=
"#"
data-location=
"${location}"
>
<span
class=
"name"
>
${name}
</span>
<span
class=
"name"
>
${name}
% if has_markdown:
MD
% endif
</span>
</a>
</a>
</li>
</li>
%endfor
%endfor
...
...
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