From ea5c39fc103272d44db7cec44f50e9b5c5909a0c Mon Sep 17 00:00:00 2001
From: "renater.salaun" <renater.salaun@047e039d-479c-447e-8a29-aa6bf4a09bab>
Date: Mon, 26 Jan 2015 16:19:04 +0000
Subject: [PATCH] Fix

git-svn-id: https://svn.geant.net/GEANT/edugain_testidp_account_manager/trunk@95 047e039d-479c-447e-8a29-aa6bf4a09bab
---
 templates/web/validate_token.tt2.html | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/templates/web/validate_token.tt2.html b/templates/web/validate_token.tt2.html
index 89258ef..d8b3bd6 100644
--- a/templates/web/validate_token.tt2.html
+++ b/templates/web/validate_token.tt2.html
@@ -48,14 +48,14 @@
 				<caption>List of user attributes</caption>
             [% FOREACH attribute IN account_profile.pairs -%]
               [% NEXT IF attribute.key.match('^(type|comment)$') %]
-              [% IF attribute.key == 'eduPersonAffiliation' || attribute.key == 'eduPersonScoppedAffiliation' %](1) [% END %]
+              
               [% IF attribute.value.isa('SCALAR') -%]
 				<tr>
-					<th>[% attribute.key %]:</th><td> [% attribute.value %]</td>
+					<th>[% attribute.key %][% IF attribute.key == 'eduPersonAffiliation' || attribute.key == 'eduPersonScopedAffiliation' %](1) [% END %]:</th><td> [% attribute.value %]</td>
 				</tr>
 			  [% ELSE -%]
 				<tr>
-					<th>[% attribute.key %]:</th><td> [% attribute.value.join(",") %]</td>
+					<th>[% attribute.key %][% IF attribute.key == 'eduPersonAffiliation' || attribute.key == 'eduPersonScopedAffiliation' %](1) [% END %]:</th><td> [% attribute.value.join(",") %]</td>
 				</tr>
 			  [% END %]
             [% END %]
-- 
GitLab