Commit 12abdbce by Don Mitchell

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)
parent 05428f5b
......@@ -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