Move comment form to the post page
This commit is contained in:
parent
7ba6f77e0f
commit
461c26f159
|
@ -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 New Issue