Mercurial > hg > nginx-site
changeset 2851:04b2f591b5af
Removed banner from error page.
* It makes almost no sense.
* It is hard to build relative path to banner because of internal redirect.
author | Sergey Budnevitch <sb@waeme.net> |
---|---|
date | Tue, 24 May 2022 10:59:52 +0400 |
parents | 6cd5251fa760 |
children | a9ebed59b64f |
files | xsls/error.xsls xslt/error.xslt |
diffstat | 2 files changed, 1 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/xsls/error.xsls Mon May 23 14:17:04 2022 +0400 +++ b/xsls/error.xsls Tue May 24 10:59:52 2022 +0400 @@ -26,7 +26,6 @@ X:include href = "style.xslt"; X:include href = "body.xslt"; X:include href = "menu.xslt"; -X:include href = "banner.xslt"; X:include href = "ga.xslt"; X:include href = "content.xslt"; @@ -36,8 +35,6 @@ !style (lang="@lang") - !banner () - !ga () </head>
--- a/xslt/error.xslt Mon May 23 14:17:04 2022 +0400 +++ b/xslt/error.xslt Tue May 24 10:59:52 2022 +0400 @@ -27,7 +27,6 @@ <xsl:include href="style.xslt"/> <xsl:include href="body.xslt"/> <xsl:include href="menu.xslt"/> -<xsl:include href="banner.xslt"/> <xsl:include href="ga.xslt"/> <xsl:include href="content.xslt"/> @@ -35,7 +34,7 @@ <xsl:template match="/error"> <html><head><title> <xsl:value-of select="@name"/> </title> - <xsl:call-template name="style"><xsl:with-param select="@lang" name="lang"/></xsl:call-template><xsl:call-template name="banner"/><xsl:call-template name="ga"/></head> + <xsl:call-template name="style"><xsl:with-param select="@lang" name="lang"/></xsl:call-template><xsl:call-template name="ga"/></head> <xsl:call-template name="body"><xsl:with-param select="@lang" name="lang"/></xsl:call-template></html> </xsl:template>