${units.enum_units(subsection, subsection_units=subsection_units)}
Subsection Settings
<%
start_date = datetime.fromtimestamp(mktime(subsection.lms.start)) if subsection.lms.start is not None else None
parent_start_date = datetime.fromtimestamp(mktime(parent_item.lms.start)) if parent_item.lms.start is not None else None
%>
% if subsection.lms.start != parent_item.lms.start and subsection.lms.start:
% if parent_start_date is None:
The date above differs from the release date of ${parent_item.display_name_with_default}, which is unset. % else:
The date above differs from the release date of ${parent_item.display_name_with_default} – ${parent_start_date.strftime('%m/%d/%Y')} at ${parent_start_date.strftime('%H:%M')}. % endif Sync to ${parent_item.display_name_with_default}.
% endif
Set a due date
<% # due date uses it own formatting for stringifying the date. As with capa_module.py, there's a utility module available for us to use due_date = dateutil.parser.parse(subsection.lms.due) if subsection.lms.due else None %> Remove due date
Preview Drafts
%if can_view_live:
View Live
%endif