<%inherit file="base.html" /> <%! from django.core.urlresolvers import reverse from django.utils.translation import ugettext as _ from xmodule.modulestore.django import loc_mapper %> <%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 <%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 locator in components:
  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
<% ctx_loc = context_course.location index_url = loc_mapper().translate_location(ctx_loc.course_id, ctx_loc, False, True).url_reverse('course') subsection_url = loc_mapper().translate_location( ctx_loc.course_id, subsection.location, False, True ).url_reverse('subsection') %>