Plume/templates/posts/details.html.tera

66 lines
2.1 KiB
Text
Raw Normal View History

2018-05-09 19:09:52 +00:00
{% extends "base" %}
{% block title %}
{{ post.title }}
{% endblock title %}
2018-05-10 20:31:52 +00:00
{% block header %}
<a href="../">{{ blog.title }}</a>
{% endblock header %}
2018-05-09 19:09:52 +00:00
{% block content %}
<h1 class="article">{{ post.title }}</h1>
<p class="article-info">
<span class="author">Written by <a href="/@/{{ author.fqn }}/">{{ author.display_name }}</a></span>
2018-05-19 07:53:51 +00:00
&mdash;
<span class="date">{{ date | date(format="%B %e, %Y") }}</span>
2018-05-19 07:53:51 +00:00
</p>
2018-05-10 20:31:52 +00:00
<article>
2018-05-10 09:44:57 +00:00
{{ post.content | safe }}
2018-05-10 20:31:52 +00:00
</article>
2018-05-10 16:38:03 +00:00
2018-05-10 20:31:52 +00:00
<div class="article-meta">
<p>This article is under the {{ post.license }} license.</p>
2018-05-10 16:38:03 +00:00
<div class="likes">
2018-05-10 20:31:52 +00:00
<p>
{{ n_likes }} like{{ n_likes | pluralize }}
</p>
{% if has_liked %}
<a class="button liked" href="like">I don't like this anymore</a>
{% else %}
<a class="button" href="like">Like</a>
{% endif %}
2018-05-19 09:57:39 +00:00
<p>
{{ n_reshares }} reshare{{ n_reshares | pluralize }}
</p>
<a class="button" href="reshare">
{% if has_reshared %}
I don't want to reshare this anymore
{% else %}
Reshare
{% endif %}
</a>
2018-05-10 09:44:57 +00:00
</div>
2018-05-10 20:31:52 +00:00
<div class="comments">
<h2>Comments</h2>
<a class="button" href="comment?">Comment</a>
<div class="list">
{% for comment in comments %}
<div class="comment" id="comment-{{ comment.id }}">
<a class="author" href="{{ comment.author.ap_url }}">
<span class="display-name">{{ comment.author.display_name }}</span>
<span class="username">@{{ comment.author.username }}</span>
</a>
<div class="text">{{ comment.content | safe }}</div>
<a class="button" href="comment?responding_to={{ comment.id }}">Respond</a>
</div>
{% endfor %}
</div>
</div>
2018-05-10 20:31:52 +00:00
</div>
2018-05-09 19:09:52 +00:00
{% endblock content %}