replace if-cases to annotate
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user