<%! from django.utils.translation import ugettext as _ %> <%inherit file="base.html" /> <%! from django.core.urlresolvers import reverse %> <%namespace name="units" file="widgets/units.html" /> <%block name="title">${_("Individual Unit")} <%block name="bodyclass">is-signedin course 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 id 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, location, has_markdown in templates: % if has_markdown or type != "problem":
    • ${name}
    • % endif %endfor
    % if type == "problem":
      % for name, location, has_markdown in templates: % if not has_markdown:
    • ${name}
    • % endif % endfor
    % endif ${_("Cancel")}
    % endif % endfor