Files
edx-platform/cms/templates/js/publish-history.underscore
2020-09-17 16:34:17 +05:00

18 lines
579 B
Plaintext

<%
var copy = gettext("Never published");
if (published_on && published_by) {
var message = gettext("Last published %(last_published_date)s by %(publish_username)s");
copy = interpolate(message, {
last_published_date: '<span class="date">' + published_on + '</span>',
publish_username: '<span class="user">' + published_by + '</span>'
}, true);
} else if (published) {
copy = gettext("Previously published");
}
%>
<div class="wrapper-last-publish">
<% // xss-lint: disable=underscore-not-escaped %>
<p class="copy"><%= copy %></p>
</div>