From 9af30ba3fd2762c8be4ec01ab4a89e44616c54c7 Mon Sep 17 00:00:00 2001
From: "renater.salaun" <renater.salaun@047e039d-479c-447e-8a29-aa6bf4a09bab>
Date: Mon, 26 Jan 2015 13:51:53 +0000
Subject: [PATCH] Rename eduGAIN Test IdP => eduGAIN Access Check

git-svn-id: https://svn.geant.net/GEANT/edugain_testidp_account_manager/trunk@89 047e039d-479c-447e-8a29-aa6bf4a09bab
---
 bin/account-manager-web.pl            |  4 ++--
 conf/default-Conf.pm                  |  8 ++++----
 templates/web/home.tt2.html           | 10 +++++-----
 templates/web/index.tt2.html          |  4 ++--
 templates/web/title.tt2.html          |  8 ++++----
 templates/web/validate_token.tt2.html |  2 +-
 6 files changed, 18 insertions(+), 18 deletions(-)

diff --git a/bin/account-manager-web.pl b/bin/account-manager-web.pl
index 546e99a..e5a20f9 100755
--- a/bin/account-manager-web.pl
+++ b/bin/account-manager-web.pl
@@ -1,7 +1,7 @@
 #!/usr/bin/perl
 
 ## 15/09/2014, Olivier Salaün
-## Web interface for the eduGAIN Test IdP Account Manager
+## Web interface for the eduGAIN Access Check Account Manager
 
 use strict vars;
 use utf8;
@@ -37,7 +37,7 @@ my %actions = ('select_sp' => {'title_en' => 'Select your Service Provider'    }
                'account_wizard' => {'title_en' => 'Select your Service Provider'    },
                'generate_token' => {'title_en' => 'Generate an authentication token'},
                'validate_token' => {'title_en' => 'Complete Email Challenge'},
-               'home' => {'title_en' => 'eduGAIN Test Identity Provider'},
+               'home' => {'title_en' => $Conf::global{'app_name'}},
     );
 
 ## Gives writes for the group
diff --git a/conf/default-Conf.pm b/conf/default-Conf.pm
index abdb936..c246ee4 100644
--- a/conf/default-Conf.pm
+++ b/conf/default-Conf.pm
@@ -9,7 +9,7 @@ our %global = (
     'version' => 'closed Beta 1',
     
     ## Name of the application used in web pages, mail notices
-    'app_name' => 'eduGAIN Test Account Manager',
+    'app_name' => 'eduGAIN Access Check',
     
     ## URL of the application
     'app_url' => 'https://my.fqdn/accountmanager',
@@ -20,14 +20,14 @@ our %global = (
     ## Token validity period, in hours
     'tokens_validity_period' => 2,
 
-    ## Scope used by the Test IdP
+    ## Scope used by the associated IdP
     'idp_scope' => 'my.fqdn',
     
     ## EntityID of the IdP
     'idp_entityid' => 'https://my.fqdn/simplesaml/saml2/idp/metadata.php',
     
     ## Name of the IdP
-    'idp_displayname' => 'eduGAIN Test Identity Provider',
+    'idp_displayname' => 'eduGAIN Access Check',
     
     ## Root simpleSamlPhp directory
     'root_ssp_dir' => '/opt/testidp/simplesamlphp',
@@ -75,7 +75,7 @@ our %global = (
     'dev_sp_contact' => 'john@my.fqdn,sarah@my.fqdn',
     
     ## From field use by the account manager
-    'notice_from' => 'testidpaccountmanager@my.fqdn',
+    'notice_from' => 'edugain-access-check.fqdn',
         
     ## federation metadata local copy path
     'federation_metadata_file_path' => '/opt/testidp/IdPAccountManager/conf/edugain-md.xml',
diff --git a/templates/web/home.tt2.html b/templates/web/home.tt2.html
index 258ed71..c1df6f9 100644
--- a/templates/web/home.tt2.html
+++ b/templates/web/home.tt2.html
@@ -11,8 +11,8 @@ $(function() {
 
 
 <div class="row">
-<h2>eduGAIN Test Identity Provider?</h2>
-<p>The eduGAIN Test Identity Provider allows administrators of a Service
+<h2>[% conf.app_name %]?</h2>
+<p>[% conf.app_name %] allows administrators of a Service
 Provider (SP) registered in <a href="http://www.geant.net/service/eduGAIN/Pages/home.aspx">eduGAIN</a> to create test
 accounts with different profiles to validate the behaviour and test
 federated login. The test accounts can only be used to access own services.
@@ -24,12 +24,12 @@ Service Provider you are administrator for.
 </p>
 <p class="align-center"><button id="start_testing">Go on testing the service</button></p>
 
-<h3>The eduGAIN Test IdP Basics</h3>
+<h3>[% conf.app_name %] Basics</h3>
 <p>
-<br/><img alt="The eduGAIN Test IdP Basics" src="/resources/images/edugain_test_idp_basics.png"/>
+<br/><img alt="[% conf.app_name %] Basics" src="/resources/images/edugain_test_idp_basics.png"/>
 </p>
 <h3>How is it ensured that users can only test their own service?</h3>
-<p>The eduGAIN Test Identity Provider exclusively allows creating test
+<p>[% conf.app_name %] exclusively allows creating test
 accounts only to users who can receive challenge emails for email
 addresses listed in the eduGAIN metadata for a particular Service Provider.
 The test accounts can only be used to access one single service for
diff --git a/templates/web/index.tt2.html b/templates/web/index.tt2.html
index cd8fcf5..6c93153 100644
--- a/templates/web/index.tt2.html
+++ b/templates/web/index.tt2.html
@@ -192,7 +192,7 @@ jQuery(function($){
 <body>
 <div id="header">
 	<ul>
-		<li class="logo align-left"><a href="/accountmanager" title="eduGAIN Test Identity Provider home page"><img alt="eduGAIN logo" width="200" src="/resources/images/edugain_logo.png "/></a></li>
+		<li class="logo align-left"><a href="/accountmanager" title="[% conf.app_name %] home page"><img alt="eduGAIN logo" width="200" src="/resources/images/edugain_logo.png "/></a></li>
 		<li>&nbsp;</li>
 		<li class="logo align-right"><a href="http://www.geant.net" title="Géant home page" target="_blank"><img alt="GEANT logo" width="100" src="/resources/images/geant_logo_rgb_300dpi.jpg"/></a></li>
 	</ul>
@@ -243,7 +243,7 @@ DUMP :<br>
 
 <div id="footer">
 	<div class="row align-center">
-	<span>Test Account Manager [% conf.version %]</span>
+	<span>[% conf.app_name %] [% conf.version %]</span>
 	</div>
 </div>
 		</div>
diff --git a/templates/web/title.tt2.html b/templates/web/title.tt2.html
index 80302a0..1a5f00f 100644
--- a/templates/web/title.tt2.html
+++ b/templates/web/title.tt2.html
@@ -1,6 +1,6 @@
-[% conf.app_name %] - 
-
-  [% IF actions.$action %]
-    [% FILTER encode_utf8 %][% actions.$action.title %][% END %]
+[% conf.app_name %] 
+  [% IF actions.$action && actions.$action.title %]
+    - 
+[% FILTER encode_utf8 %][% actions.$action.title %][% END %]
   [% ELSE %]
   [% END %]
diff --git a/templates/web/validate_token.tt2.html b/templates/web/validate_token.tt2.html
index da68e48..89258ef 100644
--- a/templates/web/validate_token.tt2.html
+++ b/templates/web/validate_token.tt2.html
@@ -42,7 +42,7 @@
         <div class="accounts_profile reveal-modal" data-reveal id="account_details_[% account.get('id') %]"> <!-- old version : class="account_details"-->
             <h3>List of user attributes associated</h3>
             <p>Below is the list of user attributes associated to this test account. After a successfull authentication process these attributes are transmited
-            via the SAML protocol from the Test Identity Provider to your Service Provider.</p>
+            via the SAML protocol from [% conf.app_name %] Identity Provider to your Service Provider.</p>
 <div>
 			<table>
 				<caption>List of user attributes</caption>
-- 
GitLab