diverse verbesserungen posts
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
|
||||
{% extends "layout.html" %}
|
||||
{% load post_helpers %}
|
||||
|
||||
{% load thumbnail %}{% load admin_urls %}
|
||||
{% block content %}
|
||||
|
||||
<div class="large-article-header" style="background-image:url('{{post.imageurl}}')">
|
||||
@@ -15,32 +15,36 @@
|
||||
</div>
|
||||
<div class="article-details">
|
||||
{{post.subtitle | tags_to_url }}
|
||||
{% if post.username != None %}
|
||||
<div class="article-author">
|
||||
<img src="https://unsplash.it/50/50?image=1005" alt="" />
|
||||
<a href="#">Jane Austen</a>
|
||||
<img src="{{post.username.image | thumbnail_url:'avatar'}}" alt="" />
|
||||
<a href="{% url 'member' post.username.nickname %}">{{post.username.nickname}}</a>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
<div class="article-comments">
|
||||
<a href="#"><i class="fa fa-comment" aria-hidden="true"></i> 3 Comments</a>
|
||||
</div>
|
||||
</div>
|
||||
</div> <button class="">
|
||||
|
||||
<span class="nav fa fa-chevron-right fa-3x"></span>
|
||||
</button>
|
||||
</div>
|
||||
</div></div>
|
||||
<div class="grid-container">
|
||||
<h1>{{post.title | tags_to_url }}</h1><br>
|
||||
<a href="{% url 'posts.show' next %}">Nächster Artikel</a>
|
||||
<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>
|
||||
{{post.event_start}}
|
||||
{{post.event_end}}
|
||||
<a href="{{ep_link}}">EP</a>
|
||||
<strong>{{post.subtitle | tags_to_url }}</strong>
|
||||
<a href="{% url "admin:posts_news_change" post.id %}">{% url "admin:posts_news_change" post.slug %}</a>
|
||||
<hr>
|
||||
{{post.body | safe}}
|
||||
{{post.body | safe | add_internal_links | tags_to_url}}
|
||||
<hr>
|
||||
{% for tag in post.get_tagnames %}
|
||||
{{tag |tags_to_url}}
|
||||
{% endfor %}
|
||||
<hr>
|
||||
<div class="grid-x grid-padding">
|
||||
<hr>
|
||||
<div class="grid-x grid-margin-x">
|
||||
|
||||
{% for post in related_posts %}
|
||||
<div class="medium-6 large-4 small-12 cell">
|
||||
|
||||
Reference in New Issue
Block a user