publish-history.underscore 525 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13
<%
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");
}
%>

14
<div class="wrapper-last-publish">
15 16
    <p class="copy"><%= copy %></p>
</div>