{% extends 'base.html' %} {% load custom_tags_and_filters %} {% block title %}News{% endblock %} {% block content %}

Recent news {% if user.is_any_part_of_staff %} {% if device == 'desktop' %} {% button type="add" url="new_news_form" value="Publish new news" style="float: right" %} {% elif device == 'mobile' %}

{% button type="add" url="new_news_form" value="Publish new news" %}

{% endif %} {% endif %}

{% if news %} {% if user.is_any_part_of_staff %}

Click a news story title to publish an update or archive it.

{% endif %}

Stories that were updated recently appear first.

{% endif %}

You can also view archived news.

{% for story in news %}

{% if story.id in notifications %}New update{% endif %} {% if user.is_any_part_of_staff %}{% endif %} {{ story.title }} {% if user.is_any_part_of_staff %}{% endif %}

{% if story.update_count > 2 %}

{{ story.original_content|safe|linebreaksbr }}

... show full story ...

{{ story.last_update_content|safe|linebreaksbr }}

{% else %}

{{ story.all_content|safe|linebreaksbr }}

{% endif %}
{% empty %}
There's no news!
{% endfor %}
{% endblock %}