You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lenya.apache.org by an...@apache.org on 2008/05/09 17:07:33 UTC

svn commit: r654845 - /lenya/branches/branch_1_2_x_shibboleth/src/webapp/lenya/xslt/ac/login-shibboleth.xsl

Author: andreas
Date: Fri May  9 08:07:32 2008
New Revision: 654845

URL: http://svn.apache.org/viewvc?rev=654845&view=rev
Log:
Don't show link to homepage on standard Shibboleth login screen.

Modified:
    lenya/branches/branch_1_2_x_shibboleth/src/webapp/lenya/xslt/ac/login-shibboleth.xsl

Modified: lenya/branches/branch_1_2_x_shibboleth/src/webapp/lenya/xslt/ac/login-shibboleth.xsl
URL: http://svn.apache.org/viewvc/lenya/branches/branch_1_2_x_shibboleth/src/webapp/lenya/xslt/ac/login-shibboleth.xsl?rev=654845&r1=654844&r2=654845&view=diff
==============================================================================
--- lenya/branches/branch_1_2_x_shibboleth/src/webapp/lenya/xslt/ac/login-shibboleth.xsl (original)
+++ lenya/branches/branch_1_2_x_shibboleth/src/webapp/lenya/xslt/ac/login-shibboleth.xsl Fri May  9 08:07:32 2008
@@ -28,13 +28,17 @@
   <xsl:param name="homepageUrl"/>
   
   <xsl:template name="loginFormWrapper">
-    <xsl:if test="not(/page/body/login/errors/error[normalize-space() = 'shibboleth-delete-cookies'])">
-      <xsl:call-template name="loginForm"/>
-      <br/>
-    </xsl:if>
-    <p>
-      <a href="{$homepageUrl}"><i18n:text>link-to-publication-homepage</i18n:text></a>
-    </p>
+    <xsl:choose>
+      <xsl:when test="/page/body/login/errors/error[normalize-space() = 'shibboleth-delete-cookies']">
+        <p>
+          <a href="{$homepageUrl}"><i18n:text>link-to-publication-homepage</i18n:text></a>
+        </p>
+      </xsl:when>
+      <xsl:otherwise>
+        <xsl:call-template name="loginForm"/>
+        <br/>
+      </xsl:otherwise>
+    </xsl:choose>
     <p>
       <a href="?lenya.usecase=shibboleth&amp;lenya.step=wayf">Login via Shibboleth</a>
     </p>



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@lenya.apache.org
For additional commands, e-mail: commits-help@lenya.apache.org