From 7514bbd61028bcbf8c8b2ff8aaab56ace85efc0f Mon Sep 17 00:00:00 2001 From: patrick Date: Mon, 1 Feb 2021 15:14:34 +0000 Subject: [PATCH] add posts and member change, article date is event start or public date --- .../members/partials/_member_details.html | 4 ++ fet2020/templates/posts/show.html | 48 +++++++++++++------ 2 files changed, 38 insertions(+), 14 deletions(-) diff --git a/fet2020/templates/members/partials/_member_details.html b/fet2020/templates/members/partials/_member_details.html index 1a347481..7d39bfde 100644 --- a/fet2020/templates/members/partials/_member_details.html +++ b/fet2020/templates/members/partials/_member_details.html @@ -6,6 +6,10 @@
+ {% if request.user.is_authenticated %} + Profil bearbeiten +
+ {% endif %}

{{ member.firstname }} {{ member.surname }}

Spitzname: {{ member.nickname }}
Mailaccount: {{ member.mailaccount }}
diff --git a/fet2020/templates/posts/show.html b/fet2020/templates/posts/show.html index 98c014f1..026d6a83 100644 --- a/fet2020/templates/posts/show.html +++ b/fet2020/templates/posts/show.html @@ -2,21 +2,23 @@ {% load post_helpers %} {% load admin_urls %} - {% block extraheader %} - {% endblock %} -{% block content %} +{% block content %}

@@ -36,13 +38,13 @@ {% elif post.author %} {% else %} {% endif %} @@ -57,17 +59,24 @@ {% for tag in post.get_tagnames %} {{ tag|tags_to_url }} {% endfor %} -
+ {% if post.has_agenda %} -

Agenda

- {{ post.agenda_html|safe }} +

Agenda

+ {{ post.agenda_html|safe }} +
+ {% endif %} + + {% if post.body %} + {{ post.body|safe|add_internal_links|tags_to_url }} +
{% endif %} - {{ post.body|safe|add_internal_links|tags_to_url }} -
+ Nächster Artikel
+
+ {% if request.user.is_authenticated %} {% if post.has_agenda %} @@ -76,18 +85,29 @@ {% if post.has_protocol %} Protokoll
+ +
{% endif %} + {% if post.post_type == 'N' %} + Bearbeiten + {% elif post.post_type == 'E' %} + Bearbeiten + {% elif post.post_type == 'F' %} + Bearbeiten + {% else %} + {% endif %} + +
{% endif %} {% if post.event_start %} - Start: {{ post.event_start }}
+ Start: {{ post.event_start|date:"d. F Y" }} {{ post.event_start|time:"H:i" }}
{% endif %} {% if post.event_end %} - Ende: {{ post.event_end }}
+ Ende: {{ post.event_end|date:"d. F Y" }} {{ post.event_end|time:"H:i" }}
{% endif %} - Nächster Artikel
{% if post.event_start %} {% include 'posts/partials/_date_box.html' %} {% endif %}