Merge branch 'feature/cas/speed-editor' of github.com:MITx/mitx into feature/cas/speed-editor
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user