author wieder zurück & events filter

This commit is contained in:
2020-08-30 17:56:33 +00:00
parent a74675ed2f
commit df958fdded
4 changed files with 37 additions and 11 deletions

View File

@@ -15,13 +15,17 @@
</div>
<div class="article-details">
{{post.subtitle | tags_to_url }}
{% if post.username != None %}
<div class="article-author">
<img src="{{post.author.image | thumbnail_url:'avatar'}}" alt="" />
<a href="/members/member/{{post.author}}">{{post.author}}</a>
{% if post.author_member != None %}
<div class="article-author"><a href="{% url 'member' post.author_member.nickname %}">
<img src="{{post.author_member.image | thumbnail_url:'avatar'}}" alt="" />
{{post.author}}</a>
</div>
{% endif %}
{% else %}
<div class="article-author"><a href="">
<img src="" alt="" />
FET</a>
</div>
{% endif %}
</div> <button class="">
@@ -36,8 +40,16 @@
<a href="{% url 'posts.show' next %}">Nächster Artikel</a><br>
{{post.event_start}}
{{post.event_end}}
{% if post.has_agenda %}
<a href="{{ep_link}}">EP</a>
<a href="{% url "admin:posts_news_change" post.id %}">{% url "admin:posts_news_change" post.slug %}</a>
{% endif %}
--
<a href="{% url "admin:posts_news_change" post.id %}">Bearbeiten</a>
<hr>
{{post.body | safe | add_internal_links | tags_to_url}}
<hr>