replace if-cases to annotate

This commit is contained in:
2022-01-17 09:37:06 +00:00
parent e128996cb7
commit 91e6341acf
7 changed files with 65 additions and 87 deletions

View File

@@ -12,11 +12,7 @@
<div class="news-hero-text">
<hr>
<div class="article-date">
{% if post.post_type != 'N' %}
<p>{{ post.event_start|date:"d. F Y" }}</p>
{% else %}
<p>{{ post.public_date|date:"d. F Y" }}</p>
{% endif %}
<p>{{ post.date|date:"d. F Y" }}</p>
</div>
<div class="article-title">
<h1>{{ post.title|safe }}</h1>