From e7e04485d9aaaed65f76b3b3b4afbfb82bfe1110 Mon Sep 17 00:00:00 2001
From: Guillaume Rousse <guillaume.rousse@renater.fr>
Date: Thu, 26 Jul 2018 13:09:27 +0200
Subject: [PATCH] add legal mentions popup in the renater footer

---
 lib/AccountManager/L10N/fr.pm        | 12 ++++++++++++
 templates/renater/web/index.tt2.html |  7 +++++--
 2 files changed, 17 insertions(+), 2 deletions(-)

diff --git a/lib/AccountManager/L10N/fr.pm b/lib/AccountManager/L10N/fr.pm
index f17b92e..6ff6028 100644
--- a/lib/AccountManager/L10N/fr.pm
+++ b/lib/AccountManager/L10N/fr.pm
@@ -31,6 +31,10 @@ msgstr "<a href=\"%1\">Cette comparaison des usages de l'attribut eduPersonAffil
 msgid "<strong>Success:</strong> your identity as administrator of the Service Provider with entityID <strong>%1</strong> has been validated!"
 msgstr "<strong>Succès:</strong> votre identité comme administrateur du service <strong>%1</strong> a été validée!"
 
+#: templates/renater/web/index.tt2.html:130
+msgid "About"
+msgstr "À propos"
+
 #. (account.profile()
 #: templates/renater/web/create_accounts.tt2.html:21 templates/web/create_accounts.tt2.html:21
 msgid "Account profile: %1"
@@ -91,6 +95,14 @@ msgstr "Si la création de comptes de test n'a pas été demandée par vous ou u
 #: templates/renater/web/create_accounts.tt2.html:72 templates/web/create_accounts.tt2.html:72
 msgid "If you need a customized test account with additional user attributes, you should contact <a href=\"mailto:%1\">%1</a>."
 msgstr "Si vous avez besoin d'un compte de test avec des attributs utilisateurs supplémentaires, vous devriez contacter <a href=\"mailto:%1\">%1</a>."
+#
+#: templates/renater/web/index.tt2.html:59 templates/renater/web/index.tt2.html:60 templates/renater/web/index.tt2.html:61
+msgid "Language"
+msgstr "Language"
+
+#: templates/renater/web/index.tt2.html:128
+msgid "Legal mentions"
+msgstr "Mentions légales"
 
 #: templates/renater/web/create_accounts.tt2.html:48 templates/renater/web/create_accounts.tt2.html:55 templates/web/create_accounts.tt2.html:48 templates/web/create_accounts.tt2.html:55
 msgid "List of user attributes"
diff --git a/templates/renater/web/index.tt2.html b/templates/renater/web/index.tt2.html
index 9052539..f8c1461 100644
--- a/templates/renater/web/index.tt2.html
+++ b/templates/renater/web/index.tt2.html
@@ -125,9 +125,9 @@
                 <p class="row small-collapse medium-uncollapse">
                     <span class="small-12 medium-5 columns text-left">&copy; RENATER <?php echo date('Y') ?> - Tous droits réservés</span>
                     <span class="small-12 medium-7 columns">
-                        <a href="legal" title="Mentions légales">Mentions légales</a> |
+                        <a href="#" data-open="legal_reveal" title="[% lh.maketext("Legal mentions") %]">[% lh.maketext("Legal mentions") %]</a> |
                         <!--<a href="user_guide" title="Aide">Aide</a> |-->
-                        <a href="#" data-open="about_reveal" title="À propos">À propos</a> |
+                        <a href="#" data-open="about_reveal" title="[% lh.maketext("About") %]">[% lh.maketext("About") %]</a> |
                         <a id="feedback" class="tip-top" data-tooltip="" data-options="disable_for_touch:true" data-trigger-class="none"
                            aria-haspopup="true" target="_blank" href="https://feedback.renater.fr/?service=federation"
                            title="Retour utilisateurs">Retour utilisateurs</a> |
@@ -139,5 +139,8 @@
         <div class="reveal" id="about_reveal" data-reveal>
             <p class="text-center">eduGAIN Access Check [% app.version %] - <a href="mailto:[% app.support_email %]">contactez nous</a></p>
         </div>
+        <div class="reveal" id="legal_reveal" data-reveal>
+            <p class="text-center">[% lh.maketext("As part of the GÉANT 2020 Framework Partnership Agreement (FPA), this project receives funding from the European Union’s Horizon 2020 research and innovation programme under Grant Agreement No. 731122 (GN4-2)." ) %]</p>
+        </div>
     </body>
 </html>
-- 
GitLab