%page expression_filter="h"/>
<%namespace name='static' file='/static_content.html'/>
<%!
from django.utils.translation import gettext as _
from openedx.core.djangolib.markup import HTML
%>
%if unit_title and show_title:
${unit_title}
% endif
% if due:
<%
data_string = _("{subsection_format} due {{date}}").format(subsection_format=subsection_format)
%>
% if completed:
${_('Completed')}
% elif past_due:
${_('Past Due')}
%endif
% endif
% if show_bookmark_button:
<%include file='bookmark_button.html' args="bookmark_id=bookmark_id, is_bookmarked=bookmarked"/>
% endif
% if vertical_banner_ctas and not is_mobile_app:
## We don't show any CTA banners on the mobile app yet, they need to handle these especially.
% for vertical_banner_cta in vertical_banner_ctas:
% endfor
% endif
% for idx, item in enumerate(items):
% if item['content']:
${HTML(item['content'])}
%endif
% endfor
<%static:require_module_async module_name="js/dateutil_factory" class_name="DateUtilFactory">
DateUtilFactory.transform('.localized-datetime');
%static:require_module_async>