Skip to content

Commit

Permalink
Merge branch 'main' into invalid_csrf_token
Browse files Browse the repository at this point in the history
  • Loading branch information
melroy89 authored Sep 14, 2024
2 parents b3d8121 + 89c1334 commit 9e1e1e7
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 6 deletions.
24 changes: 18 additions & 6 deletions templates/entry/comment/view.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,23 @@
}) }}"
data-controller="subject-list"
data-action="{{- DYNAMIC_LISTS is same as V_TRUE ? autoAction : manualAction -}}">
{{ component('entry_comment', {
comment: comment.root ?? comment,
showEntryTitle: false,
showMagazineName: false,
showNested: true,
}) }}
{% set entryComment = comment.root ?? comment %}
{% if entryComment is defined and entryComment is not null %}
{{ component('entry_comment', {
comment: entryComment,
showEntryTitle: false,
showMagazineName: false,
showNested: true,
}) }}
{% else %}
<div class="section alert alert__danger">
<p>
<a href="{{ entry_url(entry) }}" class="btn btn-link btn__danger" style="margin-right: 10px;">
<i class="fa-solid fa-arrow-left-long" title="{{ 'back'|trans }}"></i> {{ 'back'|trans }}
</a>
{{ 'comment_not_found'|trans }}
</p>
</div>
{% endif %}
</div>
{% endblock %}
1 change: 1 addition & 0 deletions translations/messages.en.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -896,3 +896,4 @@ admin_users_suspended: Suspended
admin_users_banned: Banned
user_verify: Activate account
max_image_size: Maximum file size
comment_not_found: Comment not found

0 comments on commit 9e1e1e7

Please sign in to comment.