Commit c443cd83 by cahrens

Merge branch 'feature/cas/speed-editor' of github.com:MITx/mitx into feature/cas/speed-editor

parents 47409654 12abdbce
......@@ -271,6 +271,7 @@ def edit_unit(request, location):
component_templates[template.location.category].append((
template.display_name,
template.location.url(),
'markdown' in template.metadata
))
components = [
......
......@@ -152,10 +152,14 @@
% for type, templates in sorted(component_templates.items()):
<div class="new-component-templates new-component-${type}">
<ul class="new-component-template">
% for name, location in templates:
% for name, location, has_markdown in templates:
<li>
<a href="#" data-location="${location}">
<span class="name">${name}</span>
<span class="name">${name}
% if has_markdown:
MD
% endif
</span>
</a>
</li>
%endfor
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment