{% comment %} {% extends "index.html" %} {% endcomment %} {% load i18n %} {% load static %} {% load basefilters %} {% block content %}

# {% trans "Announcements" %}

{% if perms.announcemnt.add_announcemnt or request.user|is_reportingmanager %}
{% endif %}
{% for anoun in announcements %}
{{ anoun.title }}
{% trans "Posted on" %} {{ anoun.created_at|date:"F j, Y" }} {% trans "at" %} {{ anoun.created_at|time:"g:i A" }}
{% if perms.announcemnt.add_announcemnt or request.user|is_reportingmanager %}
{% endif %}

{{ anoun.description|safe }}

{% if anoun.department.all %}
{% trans "Department" %}
{% for dep in anoun.department.all %} #{{ dep.department }} {% endfor %}
{% endif %} {% if anoun.job_position.all %}
{% trans "Job Position" %}
{% for job in anoun.job_position.all %} #{{ job.job_position }} {% endfor %}
{% endif %} {% for attachment in anoun.attachments.all %} {% if anoun.attachments.all|length > 1 %}

{% endif %} {% if attachment.file.url|slice:"-4:" == '.png' or attachment.file.url|slice:"-4:" == '.jpg' or attachment.file.url|slice:"-5:" == '.jpeg' or attachment.file.url|slice:"-4:" == '.gif' or attachment.file.url|slice:"-4:" == '.bmp' or attachment.file.url|slice:"-5:" == '.webp' or attachment.file.url|slice:"-5:" == '.tiff' or attachment.file.url|slice:"-4:" == '.tif' or attachment.file.url|slice:"-4:" == '.svg' %}
{% else %}
{% trans "View Attachment" %}
{% endif %} {% endfor %}
{% endfor %}
{% trans "Page" %} {{ announcements.number }} {% trans "of" %} {{ announcements.paginator.num_pages }}.

## {% trans "Add Comment." %}

## {% trans "Comments." %}

{% endblock content %}