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", return new XElement("board",
new XElement("id", this.id), new XElement("id", this.id),
new XElement("name", this.name), new XElement("name", this.name),
new XElement("nameTranslit", this.nameTranslit),
new XElement("description", this.description), new XElement("description", this.description),
new XElement("parent", this.parentBoardId.HasValue ? this.parentBoard.exportToXmlSimpleWithParent(context) : this.category.exportToXmlSimple(context)) 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: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: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"> <table width="95%" align="center" class="tablesurround" cellpadding="1" cellspacing="1">
<tr> <tr>
<td> <td>

@ -35,7 +35,7 @@
<xsl:if test="currentLocation//board"> <xsl:if test="currentLocation//board">
<xsl:text> | </xsl:text> <xsl:text> | </xsl:text>
<xsl:call-template name="headerLink"> <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:with-param name="text"><xsl:value-of select="currentLocation//board/name"/></xsl:with-param>
</xsl:call-template> </xsl:call-template>
</xsl:if> </xsl:if>

Loading…
Cancel
Save