2018-05-09 21:09:52 +02:00
|
|
|
{% extends "base" %}
|
|
|
|
|
|
|
|
{% block title %}
|
|
|
|
{{ post.title }}
|
|
|
|
{% endblock title %}
|
|
|
|
|
2018-05-10 22:31:52 +02:00
|
|
|
{% block header %}
|
|
|
|
<a href="../">{{ blog.title }}</a>
|
|
|
|
{% endblock header %}
|
|
|
|
|
2018-05-09 21:09:52 +02:00
|
|
|
{% block content %}
|
2018-05-10 11:44:57 +02:00
|
|
|
<h1>{{ post.title }}</h1>
|
2018-05-10 22:31:52 +02:00
|
|
|
<article>
|
2018-05-10 11:44:57 +02:00
|
|
|
{{ post.content | safe }}
|
2018-05-10 22:31:52 +02:00
|
|
|
</article>
|
2018-05-10 18:38:03 +02:00
|
|
|
|
2018-05-10 22:31:52 +02:00
|
|
|
<div class="article-meta">
|
|
|
|
<p>This article is under the {{ post.license }} license.</p>
|
2018-05-10 18:38:03 +02:00
|
|
|
|
2018-05-10 22:31:52 +02:00
|
|
|
<div class="inline">
|
|
|
|
<p>
|
|
|
|
{{ n_likes }} like{{ n_likes | pluralize }}
|
|
|
|
</p>
|
|
|
|
<a class="button" href="like">Add yours</a>
|
2018-05-10 11:44:57 +02:00
|
|
|
</div>
|
2018-05-10 22:31:52 +02:00
|
|
|
|
|
|
|
<h2>Comments</h2>
|
|
|
|
{% for comment in comments %}
|
|
|
|
<div class="comment" id="comment-{{ comment.id }}">
|
|
|
|
<b>{{ comment.author.display_name }}</b>
|
|
|
|
<div>{{ comment.content | safe }}</div>
|
|
|
|
<a href="comment?responding_to={{ comment.id }}">Respond</a>
|
|
|
|
</div>
|
|
|
|
{% endfor %}
|
|
|
|
<a class="button inline-block" href="comment?">Comment</a>
|
|
|
|
</div>
|
2018-05-09 21:09:52 +02:00
|
|
|
{% endblock content %}
|