{% extends "mobile/base.html" %} {% load i18n %} {% comment %} "All news" -- what Home's own news card links to. Every published, member-visible (internal or both) news item, newest first, full-width like Calendar's own agenda rows (see NewsListView's docstring for why this isn't filtered to just this account's teams the way Home's own teaser is). The "News" title lives in header_extra, merged into the shared navy app-header the same way Calendar's/Me's own titles are. {% endcomment %} {% block header_extra %}
{% trans "News" %}
{% endblock header_extra %} {% block content %}
{% if page.object_list %}
{% for item in page.object_list %}
{% with team=item.teams.first %}{% if team %}{{ team.name }}{% else %}{% trans "Club news" %}{% endif %}{% endwith %} · {{ item.published_at|date:"d M Y" }}
{{ item.title }}
{% endfor %}
{% if page.has_other_pages %}
{% if page.has_previous %} {% trans "Newer" %} {% else %} {% endif %} {% if page.has_next %} {% trans "Older" %} {% else %} {% endif %}
{% endif %} {% else %}

{% trans "No news yet." %}

{% endif %}
{% endblock content %}