Added 'has_markdown' property to templates in unit.html so that we can
differentiate them in the drop down (just added MD to names for now--brian's doing the official differentiation)
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