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-06-12 17:05:33 +00:00
|
|
|
{% block content %}
|
2018-06-12 20:14:49 +00:00
|
|
|
{% if author.display_name %}
|
|
|
|
{% set name = author.display_name %}
|
|
|
|
{% else %}
|
|
|
|
{% set name = author.username %}
|
|
|
|
{% endif %}
|
|
|
|
|
2018-05-19 07:53:51 +00:00
|
|
|
<p>
|
2018-06-17 16:19:39 +00:00
|
|
|
<b>{{ "Written by {{ link_1 }}{{ url }}{{ link_2 }}{{ name }}{{ link_3 }}" | _(
|
|
|
|
link_1='<a href="/@/',
|
|
|
|
url=author.fqn,
|
|
|
|
link_2='/">',
|
|
|
|
name=name,
|
|
|
|
link_3="</a>"
|
|
|
|
)
|
|
|
|
}}</b>
|
2018-05-19 07:53:51 +00:00
|
|
|
—
|
|
|
|
<span>{{ date | date(format="%B %e, %Y") }}</span>
|
|
|
|
</p>
|
2018-05-10 09:44:57 +00:00
|
|
|
<h1>{{ post.title }}</h1>
|
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">
|
2018-06-17 15:26:15 +00:00
|
|
|
<p>{{ "This article is under the {{ license }} license." | _(license=post.license) }}</p>
|
2018-05-10 16:38:03 +00:00
|
|
|
|
2018-05-10 20:31:52 +00:00
|
|
|
<div class="inline">
|
|
|
|
<p>
|
2018-06-17 15:26:15 +00:00
|
|
|
{{ "{{ count }} likes" | _n(singular="One like", count=n_likes) }}
|
2018-05-10 20:31:52 +00:00
|
|
|
</p>
|
2018-05-12 20:56:57 +00:00
|
|
|
<a class="button" href="like">
|
|
|
|
{% if has_liked %}
|
2018-06-17 15:26:15 +00:00
|
|
|
{{ "I don't like this anymore" | _ }}
|
2018-05-12 20:56:57 +00:00
|
|
|
{% else %}
|
2018-06-17 15:26:15 +00:00
|
|
|
{{ "Add yours" | _ }}
|
2018-05-12 20:56:57 +00:00
|
|
|
{% endif %}
|
|
|
|
</a>
|
2018-05-19 09:57:39 +00:00
|
|
|
|
|
|
|
<p>
|
2018-06-17 15:26:15 +00:00
|
|
|
{{ "{{ count }} reshares" | _n(singular="One reshare", count=n_reshares) }}
|
2018-05-19 09:57:39 +00:00
|
|
|
</p>
|
|
|
|
<a class="button" href="reshare">
|
|
|
|
{% if has_reshared %}
|
2018-06-17 15:26:15 +00:00
|
|
|
{{ "I don't want to reshare this anymore" | _ }}
|
2018-05-19 09:57:39 +00:00
|
|
|
{% else %}
|
2018-06-17 15:26:15 +00:00
|
|
|
{{ "Reshare" | _ }}
|
2018-05-19 09:57:39 +00:00
|
|
|
{% endif %}
|
|
|
|
</a>
|
2018-05-10 09:44:57 +00:00
|
|
|
</div>
|
2018-05-10 20:31:52 +00:00
|
|
|
|
2018-06-17 15:26:15 +00:00
|
|
|
<h2>{{ "Comments" | _ }}</h2>
|
2018-05-13 20:33:21 +00:00
|
|
|
<div class="list">
|
|
|
|
{% for comment in comments %}
|
2018-06-11 23:30:31 +00:00
|
|
|
{% if comment.author.display_name %}
|
2018-06-12 12:17:02 +00:00
|
|
|
{% set comment_author_name = comment.author.display_name %}
|
2018-06-11 23:30:31 +00:00
|
|
|
{% else %}
|
2018-06-12 12:17:02 +00:00
|
|
|
{% set comment_author_name = comment.author.username %}
|
2018-06-11 23:30:31 +00:00
|
|
|
{% endif %}
|
2018-05-13 20:33:21 +00:00
|
|
|
<div class="card" id="comment-{{ comment.id }}">
|
2018-06-12 20:14:49 +00:00
|
|
|
<a href="/@/{{ comment.author.fqn }}/"><b>{{ comment_author_name }}</b></a>
|
2018-05-13 20:33:21 +00:00
|
|
|
<div>{{ comment.content | safe }}</div>
|
2018-06-17 15:26:15 +00:00
|
|
|
<a href="comment?responding_to={{ comment.id }}">{{ "Respond" | _ }}</a>
|
2018-05-13 20:33:21 +00:00
|
|
|
</div>
|
|
|
|
{% endfor %}
|
|
|
|
</div>
|
2018-06-17 15:26:15 +00:00
|
|
|
<a class="button inline-block" href="comment?">{{ "Comment" | _ }}</a>
|
2018-05-10 20:31:52 +00:00
|
|
|
</div>
|
2018-05-09 19:09:52 +00:00
|
|
|
{% endblock content %}
|