diff options
author | Jozef Kutej <jozef@kutej.net> | 2008-12-01 22:59:48 +0100 |
---|---|---|
committer | Jozef Kutej <jozef@kutej.net> | 2008-12-01 22:59:48 +0100 |
commit | ab8b9fcd0f9b11e414a9bafad34bb6dc1b85b9ad (patch) | |
tree | 5ba30f06cf007698a035f0b52fb97adbe172b532 /root/templates | |
parent | working login/password check in login (diff) | |
parent | Merge branch 'master' of git@git.useperl.at:PAUSE-OpenID (diff) | |
download | Simple-OpenID-ab8b9fcd0f9b11e414a9bafad34bb6dc1b85b9ad.tar.gz Simple-OpenID-ab8b9fcd0f9b11e414a9bafad34bb6dc1b85b9ad.tar.bz2 Simple-OpenID-ab8b9fcd0f9b11e414a9bafad34bb6dc1b85b9ad.zip |
Merge branch 'master' of git@git.useperl.at:PAUSE-OpenID
Diffstat (limited to 'root/templates')
-rw-r--r-- | root/templates/error.xsl | 29 | ||||
-rw-r--r-- | root/templates/index.xsl | 12 |
2 files changed, 36 insertions, 5 deletions
diff --git a/root/templates/error.xsl b/root/templates/error.xsl new file mode 100644 index 0000000..3aa236e --- /dev/null +++ b/root/templates/error.xsl @@ -0,0 +1,29 @@ +<?xml version="1.0" encoding="UTF-8"?> +<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0" + xmlns:xhtml="http://www.w3.org/1999/xhtml" + xmlns="http://www.w3.org/1999/xhtml"> + + <xsl:output encoding="UTF-8" method="xml" omit-xml-declaration="yes" media-type="text/html" + doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" + doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN" indent="no"/> + + <xsl:template match="/document"> + <html xmlns="http://www.w3.org/1999/xhtml"> + <head> + <title>Error</title> + <style type="text/css"> + @import "default.css"; + </style> + </head> + + <body> + <p>An error occured.</p> + <xsl:if test="error_message != ''"> + <p id="error_message"> + <xsl:value-of select="error_message"/> + </p> + </xsl:if> + </body> + </html> + </xsl:template> +</xsl:stylesheet> diff --git a/root/templates/index.xsl b/root/templates/index.xsl index 0135613..9dc5bd4 100644 --- a/root/templates/index.xsl +++ b/root/templates/index.xsl @@ -7,25 +7,27 @@ doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN" indent="no"/> - <xsl:param name="origin_website"/> + <xsl:param name="openid.return_to"/> <xsl:template match="/document"> - <html xmlns="http://www.w3.org/1999/xhtml"> + <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>Sign in with OpenID</title> + <link rel="openid.server" href="https://localhost/openid" /> <style type="text/css"> @import "default.css"; </style> </head> - + <body> - <p>The website '<xsl:value-of select="$origin_website"/>' wants to verify your PAUSE identity.</p> + <h1>PAUSE OpenID login service</h1> + <p>The website '<xsl:value-of select="$openid.return_to"/>' wants to verify your <a href="https://pause.perl.org/">PAUSE</a> identity.</p> <form method="post" action="login" id="login_form"> <div> <label for="username"><abbr title="Perl Authors Upload Server">PAUSE</abbr> ID:</label> <input name="username" id="username" type="text" /> <label for="password">Password:</label> - + <input name="password" id="password" type="password" /> <input type="submit" /> </div> |