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

# {{ announcement.title }}

{{ announcement.created_by.username|default:"Staff" }} • {{ announcement.created_at|date:"F j, Y, g:i a" }}

{{ announcement.body|markdown }}
{% if user.is_staff %}
Edit {% csrf_token %}
{% endif %}

## Discussion

{% if can_comment %} {% csrf_token %}
{% else %}

Log in to join the discussion.

{% endif %}
{% for comment in comments %}
{{ comment.user.username }} {{ comment.created_at|timesince }} ago {% if comment.updated_at != comment.created_at %}· edited{% endif %} {% if can_comment and comment.user == user %} Edit {% csrf_token %}
{% elif can_comment and user.is_staff %} {% csrf_token %}
{% endif %}
{{ comment.body|markdown }}
{% if can_comment and comment.user == user %} {% csrf_token %} {{ comment.body }}
{% endif %}
{% empty %}

No comments yet.

{% endfor %}
{% endblock %} {% block extra_js %}
{% endblock %}