Commit fb37d46b by Vik Paruchuri

Minor bugfixes

parent d0397762
......@@ -366,7 +366,6 @@ def edit_unit(request, location):
'unit_location': location,
'components': components,
'component_templates': component_templates,
'component_template_types': component_template_types,
'draft_preview_link': preview_lms_link,
'published_preview_link': lms_link,
'subsection': containing_subsection,
......
......@@ -53,7 +53,7 @@
<div class="new-component">
<h5>Add New Component</h5>
<ul class="new-component-type">
% for type in component_template_types:
% for type in sorted(component_templates.keys()):
<li>
<a href="#" data-type="${type}">
<span class="large-template-icon large-${type}-icon"></span>
......
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