{% extends 'base.html' %} {% load markdown %} {% block title %}Announcements - Packs Site{% endblock %} {% block content %}

# Announcements

{% if user.is_staff %} New announcement {% endif %}
{% for a in page %}

## {{ a.title }} {% if user.is_authenticated and a.pk not in read_ids %} new {% endif %}

{{ a.body|markdown|truncatechars_html:320 }}

{{ a.created_by.username|default:"Staff" }} • {{ a.created_at|date:"F j, Y" }} • {{ a.comments_count }} comment{{ a.comments_count|pluralize }}

{% empty %}

No announcements yet.

{% endfor %}
{% if page.has_other_pages %}
{% if page.has_previous %} « {% endif %} Page {{ page.number }} of {{ page.paginator.num_pages }} {% if page.has_next %} » {% endif %}
{% endif %} {% endblock %}