update post view, limit related_posts to max 6
This commit is contained in:
@@ -34,12 +34,8 @@
|
||||
</div>
|
||||
|
||||
<div class="grid-container">
|
||||
<h1>{{ post.title|tags_to_url }}</h1>
|
||||
<strong>{{ post.subtitle|default_if_none:" "|tags_to_url }}</strong>
|
||||
<br>
|
||||
<div class="grid-x grid-padding-x">
|
||||
<div class="grid-x grid-padding-x padding-top-1">
|
||||
<div class="cell medium-8">
|
||||
<hr>
|
||||
{% for tag in post.get_tagnames %}
|
||||
{{ tag|tags_to_url }}
|
||||
{% endfor %}
|
||||
@@ -56,20 +52,27 @@
|
||||
<div class="cell medium-4">
|
||||
{% if request.user.is_authenticated %}
|
||||
|
||||
{% if post.has_agenda %}
|
||||
<a href="{{ ep_agenda_link }}">Agenda</a><br>
|
||||
{% endif %}
|
||||
{% if post.has_agenda %}
|
||||
<a href="{{ ep_agenda_link }}">Agenda</a><br>
|
||||
{% endif %}
|
||||
|
||||
{% if post.has_protocol %}
|
||||
<a href="{{ ep_protocol_link }}">Protokoll</a>
|
||||
{% endif %}
|
||||
{% if post.has_protocol %}
|
||||
<a href="{{ ep_protocol_link }}">Protokoll</a><br>
|
||||
{% endif %}
|
||||
|
||||
{% endif %}
|
||||
|
||||
Start: {{ post.event_start }}<br>
|
||||
Ende: {{ post.event_end }}<br>
|
||||
<a href="{% url 'posts.show' next %}">Nächster Artikel </a><span class="nav fa fa-chevron-right fa-1x"></span><br>
|
||||
{% include 'posts/partials/_date_box.html' %}
|
||||
{% if post.event_start %}
|
||||
Start: {{ post.event_start }}<br>
|
||||
{% endif %}
|
||||
{% if post.event_end %}
|
||||
Ende: {{ post.event_end }}<br>
|
||||
{% endif %}
|
||||
|
||||
<a href="{% url 'posts.show' next %}">Nächster Artikel <span class="nav fa fa-chevron-right fa-1x"></span></a><br>
|
||||
{% if post.event_start %}
|
||||
{% include 'posts/partials/_date_box.html' %}
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user