From 6e11bde28d21b9cc292a51228f12a3aa7195717e Mon Sep 17 00:00:00 2001
From: Arnaud Levy <contact@arnaudlevy.com>
Date: Tue, 26 Oct 2021 07:10:44 +0200
Subject: [PATCH] better loca

---
 app/views/admin/communication/websites/show.html.erb | 4 +++-
 config/locales/communication/en.yml                  | 2 +-
 config/locales/communication/fr.yml                  | 2 +-
 3 files changed, 5 insertions(+), 3 deletions(-)

diff --git a/app/views/admin/communication/websites/show.html.erb b/app/views/admin/communication/websites/show.html.erb
index 38ef5110d..b2cb2aaae 100644
--- a/app/views/admin/communication/websites/show.html.erb
+++ b/app/views/admin/communication/websites/show.html.erb
@@ -5,7 +5,9 @@
     <%= link_to @website.domain_url, @website.domain_url, target: :_blank %><br>
   <% end %>
   <%= I18n.t("activerecord.attributes.communication/website.about_#{@website.about_type}") %>
-  (<%= link_to @website.about, [:admin, @website.about] unless @website.about.nil? %>)
+  <% if @website.about %>
+    (<%= link_to @website.about, [:admin, @website.about] unless @website.about.nil? %>)
+  <% end %>
 <% end %>
 
 <div class="card mt-5">
diff --git a/config/locales/communication/en.yml b/config/locales/communication/en.yml
index 436711bfc..2da1b9eb3 100644
--- a/config/locales/communication/en.yml
+++ b/config/locales/communication/en.yml
@@ -38,7 +38,7 @@ en:
         name: Name
         domain: Domain
         about_type: About
-        about_: Nothing (independent website)
+        about_: Independent website (no specific subject)
         about_Research::Journal: Journal website
         about_Education::School: School website
       communication/website/imported/medium:
diff --git a/config/locales/communication/fr.yml b/config/locales/communication/fr.yml
index 1faa0dfd9..a11914487 100644
--- a/config/locales/communication/fr.yml
+++ b/config/locales/communication/fr.yml
@@ -38,7 +38,7 @@ fr:
         name: Nom
         domain: Domaine
         about_type: Sujet du site
-        about_: Aucun sujet (site indépendant)
+        about_: Site indépendant (aucun sujet)
         about_Research::Journal: Site de revue scientifique
         about_Education::School: Site d'école
       communication/website/imported/medium:
-- 
GitLab