Forum header panel improved

main
Inga 🏳‍🌈 14 years ago
parent 19646c009c
commit de2b54ebfe
  1. 2
      Builder/IISMainHandler/build.txt
  2. 1
      Common/dataobjects/Board.cs
  3. 2
      templates/Full/elems/BoardHeader.xslt
  4. 2
      templates/Full/elems/ForumHeader.xslt

@ -253,6 +253,7 @@ namespace FLocal.Common.dataobjects {
return new XElement("board",
new XElement("id", this.id),
new XElement("name", this.name),
new XElement("nameTranslit", this.nameTranslit),
new XElement("description", this.description),
new XElement("parent", this.parentBoardId.HasValue ? this.parentBoard.exportToXmlSimpleWithParent(context) : this.category.exportToXmlSimple(context))
);

@ -2,7 +2,7 @@
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml">
<xsl:template name="boardHeader">
<xsl:variable name="baseLink">/Forum/Board/<xsl:value-of select="currentLocation/board/id"/>/</xsl:variable>
<xsl:variable name="baseLink">/Forum/Board/<xsl:value-of select="currentLocation/board/id"/>-<xsl:value-of select="currentLocation/board/nameTranslit"/>/</xsl:variable>
<table width="95%" align="center" class="tablesurround" cellpadding="1" cellspacing="1">
<tr>
<td>

@ -35,7 +35,7 @@
<xsl:if test="currentLocation//board">
<xsl:text> | </xsl:text>
<xsl:call-template name="headerLink">
<xsl:with-param name="url">/Forum/Board/<xsl:value-of select="currentLocation//board/id"/>/</xsl:with-param>
<xsl:with-param name="url">/Forum/Board/<xsl:value-of select="currentLocation//board/id"/>-<xsl:value-of select="currentLocation//board/nameTranslit"/>/</xsl:with-param>
<xsl:with-param name="text"><xsl:value-of select="currentLocation//board/name"/></xsl:with-param>
</xsl:call-template>
</xsl:if>

Loading…
Cancel
Save