Plume/templates/posts/details.tera

32 lines
750 B
Text
Raw Normal View History

2018-05-09 19:09:52 +00:00
{% extends "base" %}
{% block title %}
{{ post.title }}
{% endblock title %}
{% block content %}
2018-05-10 09:44:57 +00:00
<h1>{{ post.title }}</h1>
<p>Published in {{ blog.title }}</p>
<hr>
<p>
{{ post.content | safe }}
</p>
<p>License: {{ post.license }}</p>
<hr>
2018-05-10 16:38:03 +00:00
<p>
{{ n_likes }} like{{ n_likes | pluralize }}
</p>
<a href="like">Add yours</a>
2018-05-10 09:44:57 +00:00
<h2>Comments</h2>
{% for comment in comments %}
<div id="comment-{{ comment.id }}">
2018-05-10 09:44:57 +00:00
<b>{{ comment.author.display_name }}</b>
<div>{{ comment.content | safe }}</div>
<a href="comment?responding_to={{ comment.id }}">Respond</a>
2018-05-10 09:44:57 +00:00
</div>
{% endfor %}
<a href="comment?">Comment</a>
2018-05-09 19:09:52 +00:00
{% endblock content %}