{% import ipfire.accounts as accounts %}
{{ _("by") }} {% if isinstance(post.author, accounts.Account) %} {{ post.author.name }}, {% else %} {{ post.author }}, {% end %} {% if post.is_published() %} {% if post.updated_at and post.updated_at > post.published_at %} {{ locale.format_date(post.published_at, shorter=True, relative=False) }}, {{ _("Updated %s") % locale.format_date(post.updated_at, shorter=True) }} {% else %} {{ locale.format_date(post.published_at, shorter=True, relative=False) }} {% end %} {% elif post.published_at %} {{ _("Scheduled to be published %s") % locale.format_date(post.published_at, relative=False) }} {% else %} {{ _("Not published") }} {% end %}