mirror of
https://git.joinplu.me/Plume/Plume.git
synced 2024-11-22 19:41:03 +00:00
Move comment form to the post page
This commit is contained in:
parent
7ba6f77e0f
commit
461c26f159
2 changed files with 13 additions and 1 deletions
|
@ -278,3 +278,6 @@ msgstr ""
|
||||||
|
|
||||||
msgid "{{ data }} mentioned you."
|
msgid "{{ data }} mentioned you."
|
||||||
msgstr ""
|
msgstr ""
|
||||||
|
|
||||||
|
msgid "Your comment"
|
||||||
|
msgstr ""
|
||||||
|
|
|
@ -60,7 +60,16 @@
|
||||||
|
|
||||||
<div class="comments">
|
<div class="comments">
|
||||||
<h2>{{ "Comments" | _ }}</h2>
|
<h2>{{ "Comments" | _ }}</h2>
|
||||||
<a class="button" href="comment?">{{ "Comment" | _ }}</a>
|
|
||||||
|
{% if account %}
|
||||||
|
<form method="post" action="/~/{{ blog.actor_id }}/{{ post.slug }}/comment">
|
||||||
|
<label for="content">{{ "Your comment" | _ }}</label>
|
||||||
|
{# Ugly, but we don't have the choice if we don't want weird paddings #}
|
||||||
|
<textarea id="content" name="content">{% filter trim %}{% if previous %}{% if previous.author.fqn != user_fqn %}@{{ previous.author.fqn }} {% endif %}{% for mention in previous.mentions %}{% if mention != user_fqn %}@{{ mention }} {% endif %}{% endfor %}{% endif %}{% endfilter %}</textarea>
|
||||||
|
<input type="submit" value="{{ "Submit comment" | _ }}" />
|
||||||
|
</form>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
<div class="list">
|
<div class="list">
|
||||||
{% for comment in comments %}
|
{% for comment in comments %}
|
||||||
{% if comment.author.display_name %}
|
{% if comment.author.display_name %}
|
||||||
|
|
Loading…
Reference in a new issue