{% extends 'settings/layout.html' %} {% load i18n %} {% load humanize %} {% block title %}{% trans "Announcement" %} - {{ announcement.preview }}{% endblock %} {% block header %} {% trans "Announcement" %} {% endblock %} {% block edit-button %}
{% trans "Edit" %}
{% csrf_token %}
{% endblock %} {% block breadcrumbs %}
{% endblock %} {% block panel %}

{% trans "Visible:" %}
  {% if announcement in active_announcements %} {% trans "True" %} {% else %} {% trans "False" %} {% endif %}
{% if announcement.start_date %}
{% trans "Start date:" %}
  {{ announcement.start_date|naturalday }}
{% endif %} {% if announcement.end_date %}
{% trans "End date:" %}
  {{ announcement.end_date|naturalday }}
{% endif %}
{% trans "Active:" %}
  {{ announcement.active }}

{% include 'snippets/announcement.html' with announcement=announcement pressed=True admin_mode=True %}
{% endblock %}