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

Recent news {% if device == 'desktop' and user.is_staff %} Publish new news {% endif %}

{% if news %} {% if user.is_staff %} {% if device == 'mobile' %}

Publish new news

{% endif %}

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_staff %}{% endif %} {{ story.title }} {% if user.is_staff %}{% endif %}

{% if story.update_count > 2 %}

{{ story.original_content|linebreaksbr }}

... show full story ...

{{ story.last_update_content|linebreaksbr }}

{% else %}

{{ story.all_content|linebreaksbr }}

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