Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 15 additions & 9 deletions cms/templates/unit.html
Original file line number Diff line number Diff line change
Expand Up @@ -165,15 +165,21 @@ <h4 class="header">${_("Unit Settings")}</h4>
<p class="publish-draft-message">${_('This is a draft of the published unit. To update the live version, you must {link_start}replace it with this draft{link_end}.').format(link_start='<a href="#" class="publish-draft">', link_end='</a>')}</p>
</div>
<div class="row status">
<p>${_("This unit is scheduled to be released to <strong>students</strong>")}
% if release_date is not None:
${_(u"on {date}").format(date=u"<strong>{}</strong>".format(release_date))}
% endif
${_("with the subsection {link_start}{name}{link_end}").format(
name=subsection.display_name_with_default,
link_start=u'<a href="{url}">'.format(url=subsection_url),
link_end='</a>',
)}
<p>
% if release_date is not None:
${_("This unit is scheduled to be released to <strong>students</strong> on <strong>{date}</strong> with the subsection {link_start}{name}{link_end}").format(
date=release_date,
name=subsection.display_name_with_default,
link_start=u'<a href="{url}">'.format(url=subsection_url),
link_end=u'</a>',
)}
% else:
${_("This unit is scheduled to be released to <strong>students</strong> with the subsection {link_start}{name}{link_end}").format(
name=subsection.display_name_with_default,
link_start=u'<a href="{url}">'.format(url=subsection_url),
link_end=u'</a>',
)}
% endif
</p>
</div>
<div class="row unit-actions">
Expand Down