diff --git a/app/views/admin/application/property/_text.html.erb b/app/views/admin/application/property/_text.html.erb index 0fd8acc44e27911923090811aba761d992ce50c5..42e023087a32681dcda45950a6ee4e6825d0d63b 100644 --- a/app/views/admin/application/property/_text.html.erb +++ b/app/views/admin/application/property/_text.html.erb @@ -17,6 +17,7 @@ end <p> <% if value.blank? %> <i class="fa fa-exclamation-circle text-danger"></i> + <%= t 'properties.text.missing' %> <% else %> <%= strip_tags(value).truncate(200).html_safe %> <% end %> diff --git a/app/views/admin/communication/websites/posts/show.html.erb b/app/views/admin/communication/websites/posts/show.html.erb index 77aee23f876abb60567700e350f4bd07b91be64f..494c467914fed62b972215e97dfc0e7454c6eacf 100644 --- a/app/views/admin/communication/websites/posts/show.html.erb +++ b/app/views/admin/communication/websites/posts/show.html.erb @@ -9,7 +9,6 @@ </div> <div class="card-body"> <%= render 'admin/application/property/text', object: @post, property: :description_short %> - <%= render 'admin/application/property/text', object: @post, property: :text %> <%= render 'admin/application/property/summernote_embeds', object: @post, property: :medias %> </div> </div> diff --git a/config/locales/en.yml b/config/locales/en.yml index fed2ca7a2eded103e2d6343a7e000ae1914004c6..0a82619a95ea1f3026a8e76881653db3f2dae776 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -236,6 +236,9 @@ en: desktop: Desktop privacy_policy: Privacy policy privacy_policy_url: https://osuny.org/politique-de-confidentialite + properties: + text: + missing: Missing text quit: Quit remove: Remove reset: Reset diff --git a/config/locales/fr.yml b/config/locales/fr.yml index e3a2ea6c1bf353ffc0364da69b9e0d3b4be4a8bf..f19819e31cb368f0a53a7ccbda86a9bfb4057955 100644 --- a/config/locales/fr.yml +++ b/config/locales/fr.yml @@ -239,6 +239,9 @@ fr: desktop: Ordinateur de bureau privacy_policy: Politique de confidentialité privacy_policy_url: https://osuny.org/politique-de-confidentialite + properties: + text: + missing: Texte manquant quit: Quitter remove: Retirer reset: Réinitialiser