94 lines
2.6 KiB
HTML
94 lines
2.6 KiB
HTML
|
|
{% extends "layout.html" %}
|
|
{% load post_helpers %}
|
|
{% load admin_urls %}
|
|
{% block content %}
|
|
|
|
<div class="large-article-header" style="background-image:url('{{post.imageurl}}')">
|
|
<div class="large-article-header-content">
|
|
<div class="center-container">
|
|
<div class="article-date">
|
|
<p>{{post.public_date}}</p>
|
|
</div>
|
|
|
|
<div class="article-title">
|
|
<h1>{{post.title |tags_to_url}}</h1>
|
|
</div>
|
|
|
|
<div class="article-details">
|
|
{{post.subtitle |tags_to_url}}
|
|
|
|
{% if post.author %}
|
|
<div class="article-author"><a href="{% url 'member' post.author %}">
|
|
<img src="{{author_image}}" alt="" /> {{post.author}}
|
|
</a>
|
|
</div>
|
|
{% else %}
|
|
<div class="article-author"><a href="">
|
|
<img src="" alt="" />
|
|
{{post.author}}</a>
|
|
</div>
|
|
{% endif %}
|
|
|
|
</div> <button class="">
|
|
|
|
<span class="nav fa fa-chevron-right fa-3x"></span>
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="grid-container">
|
|
<div class="grid-x">
|
|
<div class="cell medium-8">
|
|
<h1>{{post.title | tags_to_url}}</h1>
|
|
<strong>{{post.subtitle | tags_to_url}}</strong><span class="nav fa fa-chevron-right fa-3x"></span>
|
|
<br>
|
|
<a href="{% url 'posts.show' next %}">Nächster Artikel</a><br>
|
|
|
|
|
|
<div class="cell medium-4">
|
|
{% include 'posts/partials/_date_box.html' %}
|
|
</div>
|
|
|
|
Start: {{post.event_start}}<br>
|
|
Ende: {{post.event_end}}<br>
|
|
|
|
{% 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 request.user.is_authenticated %}
|
|
<br>------<br>
|
|
<a href="{% url "admin:posts_news_change" post.id %}">Bearbeiten</a>
|
|
{% endif %}
|
|
|
|
<hr>
|
|
{% for tag in post.get_tagnames %}
|
|
{{tag |tags_to_url}}
|
|
{% endfor %}
|
|
|
|
<hr>
|
|
{% if post.has_agenda %}
|
|
<h2>Agenda</h2>
|
|
{{post.agenda_html |safe}}
|
|
{% endif %}
|
|
|
|
{{post.body | safe | add_internal_links | tags_to_url}}
|
|
<hr>
|
|
</div>
|
|
|
|
</div>
|
|
<div class="grid-x grid-margin-x">
|
|
{% for post in related_posts %}
|
|
<div class="medium-6 large-4 small-12 cell">
|
|
{% include 'posts/partials/_posts_hero.html' %}
|
|
</div>
|
|
{% endfor %}
|
|
</div>
|
|
</div>
|
|
{% endblock %} |