diff --git a/cms/templates/unit.html b/cms/templates/unit.html index acaa514650..d89a61ea0b 100644 --- a/cms/templates/unit.html +++ b/cms/templates/unit.html @@ -168,15 +168,21 @@ require(["domReady!", "jquery", "js/models/module_info", "coffee/src/views/unit"
${_("This unit is scheduled to be released to students")} - % if release_date is not None: - ${_(u"on {date}").format(date=u"{}".format(release_date))} - % endif - ${_("with the subsection {link_start}{name}{link_end}").format( - name=subsection.display_name_with_default, - link_start=u''.format(url=subsection_url), - link_end='', - )} +
+ % if release_date is not None: + ${_("This unit is scheduled to be released to students on {date} with the subsection {link_start}{name}{link_end}").format( + date=release_date, + name=subsection.display_name_with_default, + link_start=u''.format(url=subsection_url), + link_end=u'', + )} + % else: + ${_("This unit is scheduled to be released to students with the subsection {link_start}{name}{link_end}").format( + name=subsection.display_name_with_default, + link_start=u''.format(url=subsection_url), + link_end=u'', + )} + % endif