mirror of
https://git.joinplu.me/Plume/Plume.git
synced 2024-11-03 19:09:30 +00:00
86 lines
2.9 KiB
Text
86 lines
2.9 KiB
Text
{% extends "base" %}
|
|
|
|
{% block title %}
|
|
{{ post.title }}
|
|
{% endblock title %}
|
|
|
|
{% block header %}
|
|
<a href="../">{{ blog.title }}</a>
|
|
{% endblock header %}
|
|
|
|
{% block content %}
|
|
<<<<<<< HEAD
|
|
<h1 class="article">{{ post.title }}</h1>
|
|
<p class="article-info">
|
|
|
|
{% if author.display_name %}
|
|
{% set name = author.display_name %}
|
|
{% else %}
|
|
{% set name = author.username %}
|
|
{% endif %}
|
|
|
|
<span class="author">{{ "Written by {{ link_1 }}{{ url }}{{ link_2 }}{{ name }}{{ link_3 }}" | _(
|
|
link_1='<a href="/@/',
|
|
url=author.fqn,
|
|
link_2='/">',
|
|
name=name,
|
|
link_3="</a>"
|
|
)
|
|
}}</a></span>
|
|
—
|
|
<span class="date">{{ date | date(format="%B %e, %Y") }}</span>
|
|
</p>
|
|
<article>
|
|
{{ post.content | safe }}
|
|
</article>
|
|
|
|
<div class="article-meta">
|
|
<p>{{ "This article is under the {{ license }} license." | _(license=post.license) }}</p>
|
|
|
|
<div class="likes">
|
|
<p>
|
|
{{ "{{ count }} likes" | _n(singular="One like", count=n_likes) }}
|
|
</p>
|
|
|
|
{% if has_liked %}
|
|
<a class="button liked" href="like">{{ "I don't like this anymore" | _ }}</a>
|
|
{% else %}
|
|
<a class="button" href="like">{{ "Add yours" | _ }}</a>
|
|
{% endif %}
|
|
|
|
<p>
|
|
{{ "{{ count }} reshares" | _n(singular="One reshare", count=n_reshares) }}
|
|
</p>
|
|
<a class="button" href="reshare">
|
|
{% if has_reshared %}
|
|
{{ "I don't want to reshare this anymore" | _ }}
|
|
{% else %}
|
|
{{ "Reshare" | _ }}
|
|
{% endif %}
|
|
</a>
|
|
</div>
|
|
|
|
<div class="comments">
|
|
<h2>{{ "Comments" | _ }}</h2>
|
|
<a class="button" href="comment?">{{ "Comment" | _ }}</a>
|
|
<div class="list">
|
|
{% for comment in comments %}
|
|
{% if comment.author.display_name %}
|
|
{% set comment_author_name = comment.author.display_name %}
|
|
{% else %}
|
|
{% set comment_author_name = comment.author.username %}
|
|
{% endif %}
|
|
|
|
<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>
|
|
</div>
|
|
{% endblock content %}
|