From 12abdbce7357238af63d364da9ec067b96f5b2d9 Mon Sep 17 00:00:00 2001 From: Don Mitchell Date: Mon, 7 Jan 2013 10:55:10 -0500 Subject: [PATCH] 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) --- cms/djangoapps/contentstore/views.py | 1 + cms/templates/unit.html | 8 ++++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/cms/djangoapps/contentstore/views.py b/cms/djangoapps/contentstore/views.py index 8f10eadc4b..d828993e34 100644 --- a/cms/djangoapps/contentstore/views.py +++ b/cms/djangoapps/contentstore/views.py @@ -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 = [ diff --git a/cms/templates/unit.html b/cms/templates/unit.html index 32f585d878..40dfd65381 100644 --- a/cms/templates/unit.html +++ b/cms/templates/unit.html @@ -152,10 +152,14 @@ % for type, templates in sorted(component_templates.items()):