{% extends 'settings/layout.html' %} {% load i18n %}{% load humanize %} {% block title %}{% trans "Announcements" %}{% endblock %} {% block header %}{% trans "Announcements" %}{% endblock %} {% block edit-button %} {% trans "Create Announcement" as button_text %} {% include 'snippets/toggle/open_button.html' with controls_text="create_announcement" icon_with_text="plus" text=button_text focus="create_announcement_header" %} {% endblock %} {% block panel %}
{% url 'settings-announcements' as url %} {% trans "Date added" as text %} {% include 'snippets/table-sort-header.html' with field="created_date" sort=sort text=text %} | {% trans "Preview" as text %} {% include 'snippets/table-sort-header.html' with field="preview" sort=sort text=text %} | {% trans "Start date" as text %} {% include 'snippets/table-sort-header.html' with field="start_date" sort=sort text=text %} | {% trans "End date" as text %} {% include 'snippets/table-sort-header.html' with field="end_date" sort=sort text=text %} | {% trans "Status" as text %} {% include 'snippets/table-sort-header.html' with field="active" sort=sort text=text %} |
---|---|---|---|---|
{{ announcement.created_date|naturalday }} | {{ announcement.preview }} | {{ announcement.start_date|naturaltime|default:'' }} | {{ announcement.end_date|naturaltime|default:'' }} | {% if announcement.active %}{% trans "active" %}{% else %}{% trans "inactive" %}{% endif %} |
{% trans "No announcements found." %}
{% endif %}