From 1bae097b22a4db73cf2f859573290b4301a15da6 Mon Sep 17 00:00:00 2001
From: pabois <pierreandre.boissinot@noesya.coop>
Date: Thu, 17 Feb 2022 12:14:33 +0100
Subject: [PATCH] pages index

---
 .../communication/website/index_pages/index.html.erb      | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/app/views/admin/communication/website/index_pages/index.html.erb b/app/views/admin/communication/website/index_pages/index.html.erb
index 228669062..18e6614fc 100644
--- a/app/views/admin/communication/website/index_pages/index.html.erb
+++ b/app/views/admin/communication/website/index_pages/index.html.erb
@@ -8,9 +8,11 @@
         <div class="card">
           <div class="card-body">
             <h2 class="card-title"><%= t("communication.website.index_pages.default.#{key}.title") %></h2>
-            <p class="text-muted mb-0">
-              <%= @website.index_for(key).title %>
-            </p>
+            <% if t("communication.website.index_pages.default.#{key}.title") != @website.index_for(key).title %>
+              <p class="text-muted mb-0 fst-italic">
+                <%= @website.index_for(key).title %>
+              </p>
+            <% end %>
             <p class="text-muted small">
               <%= @website.index_for(key).description %>&nbsp;
             </p>
-- 
GitLab