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

[email protected]
Newsgroups gmane.comp.cms.lenya.cvs
Message-ID <[email protected]>
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>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.