diff --git a/com/templates/com/news_list.jinja b/com/templates/com/news_list.jinja index 9554a4bf..4240ac1c 100644 --- a/com/templates/com/news_list.jinja +++ b/com/templates/com/news_list.jinja @@ -4,66 +4,33 @@ {% trans %}News{% endtrans %} {% endblock %} -{% block head %} -{{ super() }} - -{% endblock %} - {% block content %} +
{{ d.start_date|localtime|date('D d M Y') }}
-- {{ d.start_date|localtime|time(DATETIME_FORMAT) }} - - {{ d.end_date|localtime|time(DATETIME_FORMAT) }} -
-{{ d.news.title }} - {{ d.news.club }}
-{{ d.news.summary|markdown }}
-+
{{ news.dates.first().start_date|localtime|date(DATETIME_FORMAT) }}
{{ news.dates.first().start_date|localtime|time(DATETIME_FORMAT) }} -
{{ news.dates.first().end_date|localtime|date(DATETIME_FORMAT) }}
@@ -90,12 +57,12 @@ div#agenda_content {
+
{{ news.dates.first().start_date|localtime|date(DATETIME_FORMAT) }}
{{ news.dates.first().start_date|localtime|time(DATETIME_FORMAT) }} -
{{ news.dates.first().end_date|localtime|date(DATETIME_FORMAT) }}
@@ -111,13 +78,14 @@ div#agenda_content {
{% for news in object_list.filter(dates__start_date__gte=timezone.now()+timedelta(days=5), type="EVENT", is_moderated=True) %}
{% trans %}Events today and the next few days{% endtrans %}
{% for d in NewsDate.objects.filter(end_date__gte=timezone.now(), start_date__lte=timezone.now()+timedelta(days=5),
news__type="EVENT", news__is_moderated=True).datetimes('start_date', 'day') %}
- {{ d|localtime|date(DATETIME_FORMAT) }}
+ {{ d|localtime|date(DATETIME_FORMAT) }}
{% for news in object_list.filter(dates__start_date__gte=d, dates__start_date__lte=d+timedelta(days=1),
type="EVENT").exclude(dates__end_date__lt=timezone.now()) %}
{{ news.title }}
- {{ news.title }}
- {{ news.dates.first().start_date|localtime|date(DATETIME_FORMAT) }}
+ {{ news.dates.first().start_date|localtime|date(DATETIME_FORMAT) }}
{{ news.dates.first().start_date|localtime|time(DATETIME_FORMAT) }} -
{{ news.dates.first().end_date|localtime|date(DATETIME_FORMAT) }}
{{ news.dates.first().end_date|localtime|time(DATETIME_FORMAT) }}