Post, entry edit, comment create alert

This commit is contained in:
Ernest Wiśniewski 2023-05-29 12:37:13 +02:00
parent 47931a28bf
commit 97c4c8c1e1
9 changed files with 32 additions and 1 deletions

View file

@ -69,7 +69,7 @@
href="{{ path('post_comment_create', {magazine_name: post.magazine.name, post_id: post.id, slug: post.slug|length ? post.slug : '-'}) }}"
data-action="subject#getForm">{{ 'reply'|trans|lower }}</a>
</li>
{% if post.commentCount > 2 and not is_route_name('post_single', true) %}
{% if not is_route_name('post_single', true) and ((not showCommentsPreview and post.commentCount > 0) or post.commentCount > 2) %}
<li data-post-target="expand">
<a class="stretched-link"
href="#{{ get_url_fragment(post) }}"

View file

@ -19,6 +19,10 @@
showShortSentence: false,
showBody:false
}) }}
<div class="alert alert__info">
<p>{{ 'browsing_one_thread'|trans }}</p>
<p><a href="{{ entry_url(entry) }}"><i class="fa-solid fa-arrow-left"></i> {{ 'return'|trans }}</a></p>
</div>
{% if parent is defined and parent %}
{{ component('entry_comment', {
comment: parent,

View file

@ -19,6 +19,10 @@
showMagazineName: false
}) }}
{% include 'layout/_flash.html.twig' %}
<div class="alert alert__info">
<p>{{ 'browsing_one_thread'|trans }}</p>
<p><a href="{{ entry_url(comment.entry) }}"><i class="fa-solid fa-arrow-left"></i> {{ 'return'|trans }}</a></p>
</div>
<section id="content" class="section">
{% include 'entry/comment/_form_comment.html.twig' with {edit: true} %}
</section>

View file

@ -18,6 +18,10 @@
isSingle: true,
showMagazineName: false
}) }}
<div class="alert alert__info">
<p>{{ 'browsing_one_thread'|trans }}</p>
<p><a href="{{ post_url(post) }}"><i class="fa-solid fa-arrow-left"></i> {{ 'return'|trans }}</a></p>
</div>
{% if parent is defined and parent %}
{{ component('post_comment', {
comment: parent,

View file

@ -17,6 +17,10 @@
comment: comment
}) }}
{% include 'layout/_flash.html.twig' %}
<div class="alert alert__info">
<p>{{ 'browsing_one_thread'|trans }}</p>
<p><a href="{{ post_url(comment.post) }}"><i class="fa-solid fa-arrow-left"></i> {{ 'return'|trans }}</a></p>
</div>
<div id="content">
<section class="section">
{% include 'post/comment/_form_comment.html.twig' with {edit: true} %}

View file

@ -25,6 +25,10 @@
isSingle: true
}) }}
{% include 'layout/_flash.html.twig' %}
<div class="alert alert__info">
<p>{{ 'browsing_one_thread'|trans }}</p>
<p><a href="{{ post_url(post) }}"><i class="fa-solid fa-arrow-left"></i> {{ 'return'|trans }}</a></p>
</div>
<section class="section">
{% include 'post/_form_post.html.twig' with {edit: true} %}
</section>

View file

@ -470,3 +470,6 @@ kbin_promo_title: Create your own instance
kbin_promo_desc: '%link_start%Clone repo%link_end% and develop fediverse'
captcha_enabled: Captcha enabled
header_logo: Header logo
browsing_one_thread: You are only browsing one thread in the discussion! All comments
are available on the post page.
return: Return

View file

@ -468,3 +468,8 @@ kbin_intro_desc: het is een gedecentraliseerd platform voor het verzamelen van i
en microbloggen dat opereert binnen het fediversenetwerk.
kbin_promo_title: Zet je eigen instantie op
kbin_promo_desc: '%link_start%Kloon de repo%link_end% en ontwikkel het fediverse'
captcha_enabled: Captcha ingeschakeld
header_logo: Koplogo
browsing_one_thread: Je bekijkt slechts één draad in de discussie! Alle reacties zijn
beschikbaar op de pagina van het bericht.
return: Terug

View file

@ -472,3 +472,6 @@ kbin_promo_title: Utwórz własną instancję
kbin_promo_desc: '%link_start%Sklonuj repo%link_end% i rozwijaj fediverse'
captcha_enabled: Captcha włączona
header_logo: Header logo
return: Wróć
browsing_one_thread: Przeglądasz tylko jeden wątek w dyskusji! Wszystkie Komentarze
dostępne są na stronie posta.