diff --git a/app/views/admin/communication/websites/show.html.erb b/app/views/admin/communication/websites/show.html.erb index 38ef5110d548bba347ed370cafe498d5600e0caa..b2cb2aaaec9cf6be179fb6e001f56785aa77955b 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 436711bfce5cea3ccc7ae8b709e123cc66a95720..2da1b9eb3a9343004625cda4c76603554e21d442 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 1faa0dfd95b69afcbd35df0826c9e2d0924b255b..a11914487a0fe859b014de08d8d4a285081f7eaa 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: