Reversed lists experience improved

main
Inga 🏳‍🌈 14 years ago
parent 4958ed4e26
commit 6cdca33904
  1. 2
      IISMainHandler/PageOuter.cs
  2. 11
      templates/Full/elems/Main.xslt

@ -68,7 +68,7 @@ namespace FLocal.IISHandler {
public XElement exportToXml(int left, int current, int right) { public XElement exportToXml(int left, int current, int right) {
XElement result = new XElement("pageOuter", XElement result = new XElement("pageOuter",
new XElement("isReversed", this.reversed), new XElement("isReversed", this.reversed.ToPlainString()),
new XElement("unlimited", (this.count < 1).ToPlainString()), new XElement("unlimited", (this.count < 1).ToPlainString()),
new XElement("start", this.start), new XElement("start", this.start),
new XElement("count", this.count), new XElement("count", this.count),

@ -184,6 +184,7 @@
<xsl:template match="pageOuter/pages/page" mode="withoutCurrent"> <xsl:template match="pageOuter/pages/page" mode="withoutCurrent">
<xsl:param name="baseLink"/> <xsl:param name="baseLink"/>
<xsl:param name="postfix"/>
<xsl:param name="selected">-1</xsl:param> <xsl:param name="selected">-1</xsl:param>
<xsl:if test="current() != '0'"> <xsl:if test="current() != '0'">
<xsl:text>&#8201;|&#8201;</xsl:text> <xsl:text>&#8201;|&#8201;</xsl:text>
@ -191,7 +192,11 @@
<xsl:choose> <xsl:choose>
<xsl:when test="current() != $selected"> <xsl:when test="current() != $selected">
<a> <a>
<xsl:attribute name="href"><xsl:value-of select="$baseLink"/><xsl:value-of select="current()"/></xsl:attribute> <xsl:attribute name="href">
<xsl:value-of select="$baseLink"/>
<xsl:value-of select="current()"/>
<xsl:value-of select="$postfix"/>
</xsl:attribute>
<xsl:value-of select="current()"/> <xsl:value-of select="current()"/>
</a> </a>
</xsl:when> </xsl:when>
@ -205,6 +210,7 @@
<xsl:param name="baseLink"/> <xsl:param name="baseLink"/>
<xsl:apply-templates select="pages/page" mode="withoutCurrent"> <xsl:apply-templates select="pages/page" mode="withoutCurrent">
<xsl:with-param name="baseLink"><xsl:value-of select="$baseLink"/></xsl:with-param> <xsl:with-param name="baseLink"><xsl:value-of select="$baseLink"/></xsl:with-param>
<xsl:with-param name="postfix"/>
<xsl:with-param name="selected">-1</xsl:with-param> <xsl:with-param name="selected">-1</xsl:with-param>
</xsl:apply-templates> </xsl:apply-templates>
</xsl:template> </xsl:template>
@ -214,6 +220,9 @@
<xsl:text> </xsl:text> <xsl:text> </xsl:text>
<xsl:apply-templates select="pages/page" mode="withoutCurrent"> <xsl:apply-templates select="pages/page" mode="withoutCurrent">
<xsl:with-param name="baseLink"><xsl:value-of select="$baseLink"/></xsl:with-param> <xsl:with-param name="baseLink"><xsl:value-of select="$baseLink"/></xsl:with-param>
<xsl:with-param name="postfix">
<xsl:if test="isReversed='true'">/reversed</xsl:if>
</xsl:with-param>
<xsl:with-param name="selected"> <xsl:with-param name="selected">
<xsl:choose> <xsl:choose>
<xsl:when test="unlimited='false'"> <xsl:when test="unlimited='false'">

Loading…
Cancel
Save