From 3133fc1b9c592ef57d281299e5e01959b7f9ba21 Mon Sep 17 00:00:00 2001 From: Arnaud Levy <contact@arnaudlevy.com> Date: Wed, 30 Nov 2022 15:41:20 +0100 Subject: [PATCH] extranet credit --- .../extranet/application/_footer.html.erb | 29 ++++++++++--------- config/locales/extranet/en.yml | 2 ++ config/locales/extranet/fr.yml | 2 ++ 3 files changed, 20 insertions(+), 13 deletions(-) diff --git a/app/views/extranet/application/_footer.html.erb b/app/views/extranet/application/_footer.html.erb index 4f37174ad..9a834c258 100644 --- a/app/views/extranet/application/_footer.html.erb +++ b/app/views/extranet/application/_footer.html.erb @@ -8,20 +8,23 @@ </div> <% end %> <div class="row justify-space-between"> - <% if current_extranet.about.is_a?(Education::School) %> - <address class="col-md-6" itemscope itemtype="https://schema.org/CollegeOrUniversity"> - <span itemprop="name"><%= current_extranet.about.name %></span> - <div itemprop="address" itemscope itemtype="https://schema.org/PostalAddress"> - <span itemprop="streetAddress"><%= current_extranet.about.address %></span><br> - <span itemprop="postalCode"><%= current_extranet.about.zipcode %></span> - <span itemprop="addressLocality"><%= current_extranet.about.city %></span><br> + <div class="col-md-6"> + <% if current_extranet.about.is_a?(Education::School) %> + <address itemscope itemtype="https://schema.org/CollegeOrUniversity"> + <span itemprop="name"><%= current_extranet.about.name %></span> + <div itemprop="address" itemscope itemtype="https://schema.org/PostalAddress"> + <span itemprop="streetAddress"><%= current_extranet.about.address %></span><br> + <span itemprop="postalCode"><%= current_extranet.about.zipcode %></span> + <span itemprop="addressLocality"><%= current_extranet.about.city %></span><br> + </div> + </address> + <% elsif current_extranet.about.is_a?(Education::Program) %> + <div itemscope itemtype="https://schema.org/EducationalOccupationalCredential"> + <span itemprop="name"><%= current_extranet.about.name %></span> </div> - </address> - <% elsif current_extranet.about.is_a?(Education::Program) %> - <div class="col-md-6" itemscope itemtype="https://schema.org/EducationalOccupationalCredential"> - <span itemprop="name"><%= current_extranet.about.name %></span> - </div> - <% end %> + <% end %> + <p class="my-5"><%= t 'extranet.osuny_html' %></p> + </div> <nav class="text-md-end col-md-6"> <%= link_to t('terms_of_service'), diff --git a/config/locales/extranet/en.yml b/config/locales/extranet/en.yml index e7aa2085e..d8597928c 100644 --- a/config/locales/extranet/en.yml +++ b/config/locales/extranet/en.yml @@ -18,6 +18,8 @@ en: menu: Menu organization: experiences: Alumni in this organization (%{count}) + osuny_html: + Crafted with <a href="https://www.osuny.org" target="_blank" rel="noreferer">Osuny</a> personal_data: title: My personal data updated: Your personal data has been updated! diff --git a/config/locales/extranet/fr.yml b/config/locales/extranet/fr.yml index 552f0a3ca..68565aeed 100644 --- a/config/locales/extranet/fr.yml +++ b/config/locales/extranet/fr.yml @@ -19,6 +19,8 @@ fr: menu: Menu organization: experiences: Alumni dans cette organisation (%{count}) + osuny_html: + Développé avec <a href="https://www.osuny.org" target="_blank" rel="noreferer">Osuny</a> personal_data: edit: Modifier title: Mes données personnelles -- GitLab