Commit 9686fc35 authored by Emma's avatar Emma 🏳🌈

small fixes to comments

parent a32fbe96
Pipeline #60804550 passed with stage
in 1 minute and 39 seconds
......@@ -58,7 +58,7 @@
{% if recurse and comment.children|length > 0 %}
<div class="comment__replies">
{%- for reply in comment.children -%}
{%- with { comment: reply, level: level + 1 } -%}
{%- with { comment: reply, level: level + 1, show_form: false } -%}
{{- block('comment') -}}
{%- endwith -%}
{%- endfor -%}
......@@ -161,19 +161,21 @@
{% endblock %}
{%- block comment_nav_reply -%}
<li>
<a href="{{ path('comment', {
forum_name: comment.submission.forum.name,
submission_id: comment.submission.id,
comment_id: comment.id
}) }}" data-form-url="{{ path('comment_form', {
forumName: comment.submission.forum.name,
submissionId: comment.submission.id,
commentId: comment.id
}) }}" class="comment__reply-link text-sm">
<strong>{{ 'comments.reply'|trans }}</strong>
</a>
</li>
{% if is_granted('ROLE_USER') %}
<li>
<a href="{{ path('comment', {
forum_name: comment.submission.forum.name,
submission_id: comment.submission.id,
comment_id: comment.id
}) }}" data-form-url="{{ path('comment_form', {
forumName: comment.submission.forum.name,
submissionId: comment.submission.id,
commentId: comment.id
}) }}" class="comment__reply-link text-sm">
<strong>{{ 'comments.reply'|trans }}</strong>
</a>
</li>
{% endif %}
{%- endblock comment_nav_reply -%}
{%- block comment_nav_permalink -%}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment