<%inherit file="base.html" /> <%! from contentstore import utils from contentstore.views.helpers import EDITING_TEMPLATES from django.utils.translation import ugettext as _ %> <%namespace name='static' file='static_content.html'/> <%namespace name="units" file="widgets/units.html" /> <%block name="title">${_("Individual Unit")} <%block name="bodyclass">is-signedin course unit view-unit feature-upload <%block name="header_extras"> % for template_name in EDITING_TEMPLATES: % endfor <%block name="jsextra"> <%block name="content">

${_("You are editing a draft.")} % if published_date: ${_("This unit was originally published on {date}.").format(date=published_date)} % endif

${_("View the Live Version")}

    % for xblock in xblocks:
  1. % endfor
  2. ${_("Add New Component")}
    % for type, templates in sorted(component_templates.items()): % if len(templates) > 1 or type == 'advanced':
    % if type == "problem":
    % endif
      % for name, category, has_markdown, boilerplate_name in sorted(templates): % if has_markdown or type != "problem": % if boilerplate_name is None:
    • ${name}
    • % else:
    • ${name}
    • % endif % endif %endfor
    % if type == "problem":
      % for name, category, has_markdown, boilerplate_name in sorted(templates): % if not has_markdown:
    • ${name}
    • % endif % endfor
    % endif Cancel
    % endif % endfor
<% index_url = utils.reverse_course_url('course_handler', context_course.id) subsection_url = utils.reverse_usage_url('subsection_handler', subsection.location) %>