[java-identity-provider COMMIT] in /trunk: idp-conf/src/main/resources/views/intercept/attribute-release.vm idp-war/s...

noreply at shibboleth.net noreply at shibboleth.net
Wed Dec 3 17:13:16 EST 2014


Author: tzeller
Date: Wed Dec  3 17:13:16 2014
New Revision: 7040

URL: http://svn.shibboleth.net/view/java-identity-provider?rev=7040&view=rev
Log:
Use CSS rather than Velocity to set background color of table rows for attribute consent.

Modified:
    trunk/idp-conf/src/main/resources/views/intercept/attribute-release.vm
    trunk/idp-war/src/main/webapp/css/consent.css

Modified: trunk/idp-conf/src/main/resources/views/intercept/attribute-release.vm
URL: http://svn.shibboleth.net/view/java-identity-provider/trunk/idp-conf/src/main/resources/views/intercept/attribute-release.vm?rev=7040&r1=7039&r2=7040&view=diff
==============================================================================
--- trunk/idp-conf/src/main/resources/views/intercept/attribute-release.vm (original)
+++ trunk/idp-conf/src/main/resources/views/intercept/attribute-release.vm Wed Dec  3 17:13:16 2014
@@ -70,12 +70,7 @@
                         </thead>
                         <tbody>
                             #foreach ($attribute in $attributeReleaseContext.getConsentableAttributes().values())
-                                #if ($foreach.count % 2 == 0)
-                                    #set ($rowStyle = "background-color:#E4E5E3;")
-                                #else
-                                    #set ($rowStyle = "")
-                                #end
-                                <tr style=$rowStyle>
+                                <tr>
                                     <td>$encoder.encodeForHTML($attributeDisplayNameFunction.apply($attribute))</td>
                                     <td>
                                         #foreach ($value in $attribute.values)

Modified: trunk/idp-war/src/main/webapp/css/consent.css
URL: http://svn.shibboleth.net/view/java-identity-provider/trunk/idp-war/src/main/webapp/css/consent.css?rev=7040&r1=7039&r2=7040&view=diff
==============================================================================
--- trunk/idp-war/src/main/webapp/css/consent.css (original)
+++ trunk/idp-war/src/main/webapp/css/consent.css Wed Dec  3 17:13:16 2014
@@ -107,6 +107,10 @@
     color: white;
 }
 
+#attributeRelease tr:nth-of-type(even) {
+    background-color: #E4E5E3;
+}
+
 .federation_logo
 {
 	width: 50%;



More information about the commits mailing list