currentBaseUrl usage in templates

main
Inga 🏳‍🌈 14 years ago
parent 6fd2df43f2
commit b52fcb62d1
  1. 2
      Builder/IISMainHandler/build.txt
  2. 9
      templates/Full/AllPosts.xslt
  3. 5
      templates/Full/AllThreads.xslt
  4. 6
      templates/Full/Board.xslt
  5. 8
      templates/Full/BoardAsThread.xslt
  6. 8
      templates/Full/Conversation.xslt
  7. 5
      templates/Full/Conversations.xslt
  8. 11
      templates/Full/Thread.xslt
  9. 8
      templates/Full/UploadList.xslt
  10. 4
      templates/Full/UserList.xslt
  11. 4
      templates/Full/UserPollsParticipated.xslt
  12. 10
      templates/Full/UserPosts.xslt
  13. 10
      templates/Full/UserReplies.xslt
  14. 6
      templates/Full/UserThreads.xslt
  15. 2
      templates/Full/elems/Header.xslt
  16. 4
      templates/Full/elems/Main.xslt
  17. 4
      templates/Lite/Board.xslt
  18. 4
      templates/Lite/BoardAsThread.xslt
  19. 8
      templates/Lite/Conversation.xslt
  20. 4
      templates/Lite/Conversations.xslt
  21. 4
      templates/Lite/Thread.xslt
  22. 4
      templates/Lite/elems/Main.xslt

@ -6,7 +6,6 @@
<xsl:text>Âñå ñîîáùåíèÿ</xsl:text> <xsl:text>Âñå ñîîáùåíèÿ</xsl:text>
</xsl:template> </xsl:template>
<xsl:template name="isRssEnabled">true</xsl:template> <xsl:template name="isRssEnabled">true</xsl:template>
<xsl:template name="rssRelativeLink">/AllPosts/</xsl:template>
<xsl:template name="specific"> <xsl:template name="specific">
<table width="95%" align="center" cellpadding="1" cellspacing="1" class="tablesurround"> <table width="95%" align="center" cellpadding="1" cellspacing="1" class="tablesurround">
<tr> <tr>
@ -40,9 +39,7 @@
<tr> <tr>
<td> <td>
<xsl:text>ñòðàíèöû:</xsl:text> <xsl:text>ñòðàíèöû:</xsl:text>
<xsl:apply-templates select="posts/pageOuter" mode="withCurrent"> <xsl:apply-templates select="posts/pageOuter" mode="withCurrent"/>
<xsl:with-param name="baseLink">/AllPosts/</xsl:with-param>
</xsl:apply-templates>
</td> </td>
</tr> </tr>
</table> </table>
@ -55,9 +52,7 @@
<tr> <tr>
<td> <td>
<xsl:text>ñòðàíèöû:</xsl:text> <xsl:text>ñòðàíèöû:</xsl:text>
<xsl:apply-templates select="posts/pageOuter" mode="withCurrent"> <xsl:apply-templates select="posts/pageOuter" mode="withCurrent"/>
<xsl:with-param name="baseLink">/AllPosts/</xsl:with-param>
</xsl:apply-templates>
</td> </td>
</tr> </tr>
</table> </table>

@ -6,7 +6,6 @@
<xsl:text>Âñå òåìû</xsl:text> <xsl:text>Âñå òåìû</xsl:text>
</xsl:template> </xsl:template>
<xsl:template name="isRssEnabled">true</xsl:template> <xsl:template name="isRssEnabled">true</xsl:template>
<xsl:template name="rssRelativeLink">/AllThreads/</xsl:template>
<xsl:template name="specific"> <xsl:template name="specific">
<table width="95%" align="center" cellpadding="1" cellspacing="1" class="tablesurround"> <table width="95%" align="center" cellpadding="1" cellspacing="1" class="tablesurround">
<tr> <tr>
@ -48,9 +47,7 @@
<td colspan="5"> <td colspan="5">
<font class="onbody"> <font class="onbody">
<xsl:text>ñòðàíèöû:</xsl:text> <xsl:text>ñòðàíèöû:</xsl:text>
<xsl:apply-templates select="threads/pageOuter" mode="withCurrent"> <xsl:apply-templates select="threads/pageOuter" mode="withCurrent"/>
<xsl:with-param name="baseLink">/AllThreads/</xsl:with-param>
</xsl:apply-templates>
</font> </font>
</td> </td>
</tr> </tr>

@ -8,8 +8,6 @@
</xsl:template> </xsl:template>
<xsl:template name="isLiteEnabled">true</xsl:template> <xsl:template name="isLiteEnabled">true</xsl:template>
<xsl:template name="isRssEnabled">true</xsl:template> <xsl:template name="isRssEnabled">true</xsl:template>
<xsl:variable name="baseLink">/Board/<xsl:value-of select="/root/currentLocation/board/id"/>/</xsl:variable>
<xsl:template name="rssRelativeLink"><xsl:value-of select="$baseLink"/></xsl:template>
<xsl:template name="specific"> <xsl:template name="specific">
<table width="95%" align="center" cellpadding="1" cellspacing="1" class="tablesurround"> <table width="95%" align="center" cellpadding="1" cellspacing="1" class="tablesurround">
<tr> <tr>
@ -127,9 +125,7 @@
<td colspan="5"> <td colspan="5">
<font class="onbody"> <font class="onbody">
<xsl:text>ñòðàíèöû:</xsl:text> <xsl:text>ñòðàíèöû:</xsl:text>
<xsl:apply-templates select="threads/pageOuter" mode="withCurrent"> <xsl:apply-templates select="threads/pageOuter" mode="withCurrent"/>
<xsl:with-param name="baseLink"><xsl:value-of select="$baseLink"/></xsl:with-param>
</xsl:apply-templates>
</font> </font>
</td> </td>
</tr> </tr>

@ -100,9 +100,7 @@
<td colspan="5"> <td colspan="5">
<font class="onbody"> <font class="onbody">
<xsl:text>ñòðàíèöû:</xsl:text> <xsl:text>ñòðàíèöû:</xsl:text>
<xsl:apply-templates select="posts/pageOuter" mode="withCurrent"> <xsl:apply-templates select="posts/pageOuter" mode="withCurrent"/>
<xsl:with-param name="baseLink">/BoardAsThread/<xsl:value-of select="currentLocation/board/id"/>/</xsl:with-param>
</xsl:apply-templates>
</font> </font>
</td> </td>
</tr> </tr>
@ -113,9 +111,7 @@
<td colspan="5"> <td colspan="5">
<font class="onbody"> <font class="onbody">
<xsl:text>ñòðàíèöû:</xsl:text> <xsl:text>ñòðàíèöû:</xsl:text>
<xsl:apply-templates select="posts/pageOuter" mode="withCurrent"> <xsl:apply-templates select="posts/pageOuter" mode="withCurrent"/>
<xsl:with-param name="baseLink">/BoardAsThread/<xsl:value-of select="currentLocation/board/id"/>/</xsl:with-param>
</xsl:apply-templates>
</font> </font>
</td> </td>
</tr> </tr>

@ -19,9 +19,7 @@
<tr> <tr>
<td> <td>
<xsl:text>ñòðàíèöû:</xsl:text> <xsl:text>ñòðàíèöû:</xsl:text>
<xsl:apply-templates select="messages/pageOuter" mode="withCurrent"> <xsl:apply-templates select="messages/pageOuter" mode="withCurrent"/>
<xsl:with-param name="baseLink">/My/Conversations/Conversation/<xsl:value-of select="conversation/interlocutor/account/id"/>/</xsl:with-param>
</xsl:apply-templates>
</td> </td>
</tr> </tr>
</table> </table>
@ -34,9 +32,7 @@
<tr> <tr>
<td> <td>
<xsl:text>ñòðàíèöû:</xsl:text> <xsl:text>ñòðàíèöû:</xsl:text>
<xsl:apply-templates select="messages/pageOuter" mode="withCurrent"> <xsl:apply-templates select="messages/pageOuter" mode="withCurrent"/>
<xsl:with-param name="baseLink">/My/Conversations/Conversation/<xsl:value-of select="conversation/interlocutor/account/id"/>/</xsl:with-param>
</xsl:apply-templates>
</td> </td>
</tr> </tr>
</table> </table>

@ -5,7 +5,6 @@
<xsl:template name="specificTitle">Ëè÷íûå ñîîáùåíèÿ</xsl:template> <xsl:template name="specificTitle">Ëè÷íûå ñîîáùåíèÿ</xsl:template>
<xsl:template name="isLiteEnabled">true</xsl:template> <xsl:template name="isLiteEnabled">true</xsl:template>
<xsl:template name="isRssEnabled">true</xsl:template> <xsl:template name="isRssEnabled">true</xsl:template>
<xsl:template name="rssRelativeLink">/My/Conversations/</xsl:template>
<xsl:template name="specific"> <xsl:template name="specific">
<table width="95%" align="center" cellpadding="1" cellspacing="1" class="tablesurround"> <table width="95%" align="center" cellpadding="1" cellspacing="1" class="tablesurround">
<tr> <tr>
@ -81,9 +80,7 @@
<td colspan="3"> <td colspan="3">
<font class="onbody"> <font class="onbody">
<xsl:text>ñòðàíèöû:</xsl:text> <xsl:text>ñòðàíèöû:</xsl:text>
<xsl:apply-templates select="conversations/pageOuter" mode="withCurrent"> <xsl:apply-templates select="conversations/pageOuter" mode="withCurrent"/>
<xsl:with-param name="baseLink">/My/Conversations/</xsl:with-param>
</xsl:apply-templates>
</font> </font>
</td> </td>
</tr> </tr>

@ -7,8 +7,7 @@
</xsl:template> </xsl:template>
<xsl:template name="isLiteEnabled">true</xsl:template> <xsl:template name="isLiteEnabled">true</xsl:template>
<xsl:template name="isRssEnabled">true</xsl:template> <xsl:template name="isRssEnabled">true</xsl:template>
<xsl:variable name="baseLink">/Thread/<xsl:value-of select="/root/currentLocation/thread/id"/>/</xsl:variable> <xsl:template name="rssRelativeLink"><xsl:value-of select="/root/currentBaseUrl"/>0/reversed</xsl:template>
<xsl:template name="rssRelativeLink"><xsl:value-of select="$baseLink"/>0/reversed</xsl:template>
<xsl:template name="specific"> <xsl:template name="specific">
<xsl:if test="not(get/param[@name='headers'] = 'false')"> <xsl:if test="not(get/param[@name='headers'] = 'false')">
<xsl:call-template name="threadInfo"/> <xsl:call-template name="threadInfo"/>
@ -24,9 +23,7 @@
<tr> <tr>
<td> <td>
<xsl:text>ñòðàíèöû:</xsl:text> <xsl:text>ñòðàíèöû:</xsl:text>
<xsl:apply-templates select="posts/pageOuter" mode="withCurrent"> <xsl:apply-templates select="posts/pageOuter" mode="withCurrent"/>
<xsl:with-param name="baseLink"><xsl:value-of select="$baseLink"/></xsl:with-param>
</xsl:apply-templates>
</td> </td>
</tr> </tr>
</table> </table>
@ -41,9 +38,7 @@
<tr> <tr>
<td> <td>
<xsl:text>ñòðàíèöû:</xsl:text> <xsl:text>ñòðàíèöû:</xsl:text>
<xsl:apply-templates select="posts/pageOuter" mode="withCurrent"> <xsl:apply-templates select="posts/pageOuter" mode="withCurrent"/>
<xsl:with-param name="baseLink"><xsl:value-of select="$baseLink"/></xsl:with-param>
</xsl:apply-templates>
</td> </td>
</tr> </tr>
</table> </table>

@ -14,9 +14,7 @@
<tr> <tr>
<td> <td>
<xsl:text>ñòðàíèöû:</xsl:text> <xsl:text>ñòðàíèöû:</xsl:text>
<xsl:apply-templates select="uploads/pageOuter" mode="withCurrent"> <xsl:apply-templates select="uploads/pageOuter" mode="withCurrent"/>
<xsl:with-param name="baseLink">/Upload/List/</xsl:with-param>
</xsl:apply-templates>
</td> </td>
</tr> </tr>
</table> </table>
@ -29,9 +27,7 @@
<tr> <tr>
<td> <td>
<xsl:text>ñòðàíèöû:</xsl:text> <xsl:text>ñòðàíèöû:</xsl:text>
<xsl:apply-templates select="uploads/pageOuter" mode="withCurrent"> <xsl:apply-templates select="uploads/pageOuter" mode="withCurrent"/>
<xsl:with-param name="baseLink">/Upload/List/</xsl:with-param>
</xsl:apply-templates>
</td> </td>
</tr> </tr>
</table> </table>

@ -42,9 +42,7 @@
<tr> <tr>
<td> <td>
<xsl:text>ñòðàíèöû:</xsl:text> <xsl:text>ñòðàíèöû:</xsl:text>
<xsl:apply-templates select="users/pageOuter" mode="withCurrent"> <xsl:apply-templates select="users/pageOuter" mode="withCurrent"/>
<xsl:with-param name="baseLink">/Users/All/</xsl:with-param>
</xsl:apply-templates>
</td> </td>
</tr> </tr>
</table> </table>

@ -20,9 +20,7 @@
<td colspan="3"> <td colspan="3">
<font class="onbody"> <font class="onbody">
<xsl:text>ñòðàíèöû:</xsl:text> <xsl:text>ñòðàíèöû:</xsl:text>
<xsl:apply-templates select="polls/pageOuter" mode="withCurrent"> <xsl:apply-templates select="polls/pageOuter" mode="withCurrent"/>
<xsl:with-param name="baseLink">/Users/User/<xsl:value-of select="user/id"/>/PollsParticipated/</xsl:with-param>
</xsl:apply-templates>
</font> </font>
</td> </td>
</tr> </tr>

@ -7,8 +7,6 @@
<xsl:value-of select="user/name"/> <xsl:value-of select="user/name"/>
</xsl:template> </xsl:template>
<xsl:template name="isRssEnabled">true</xsl:template> <xsl:template name="isRssEnabled">true</xsl:template>
<xsl:variable name="baseLink">/Users/User/<xsl:value-of select="/root/user/id"/>/Posts/</xsl:variable>
<xsl:template name="rssRelativeLink"><xsl:value-of select="$baseLink"/></xsl:template>
<xsl:template name="specific"> <xsl:template name="specific">
<table width="95%" align="center" cellpadding="1" cellspacing="1" class="tablesurround"> <table width="95%" align="center" cellpadding="1" cellspacing="1" class="tablesurround">
<tr> <tr>
@ -20,9 +18,7 @@
<tr> <tr>
<td> <td>
<xsl:text>ñòðàíèöû:</xsl:text> <xsl:text>ñòðàíèöû:</xsl:text>
<xsl:apply-templates select="posts/pageOuter" mode="withCurrent"> <xsl:apply-templates select="posts/pageOuter" mode="withCurrent"/>
<xsl:with-param name="baseLink"><xsl:value-of select="$baseLink"/></xsl:with-param>
</xsl:apply-templates>
</td> </td>
</tr> </tr>
</table> </table>
@ -35,9 +31,7 @@
<tr> <tr>
<td> <td>
<xsl:text>ñòðàíèöû:</xsl:text> <xsl:text>ñòðàíèöû:</xsl:text>
<xsl:apply-templates select="posts/pageOuter" mode="withCurrent"> <xsl:apply-templates select="posts/pageOuter" mode="withCurrent"/>
<xsl:with-param name="baseLink"><xsl:value-of select="$baseLink"/></xsl:with-param>
</xsl:apply-templates>
</td> </td>
</tr> </tr>
</table> </table>

@ -7,8 +7,6 @@
<xsl:value-of select="user/name"/> <xsl:value-of select="user/name"/>
</xsl:template> </xsl:template>
<xsl:template name="isRssEnabled">true</xsl:template> <xsl:template name="isRssEnabled">true</xsl:template>
<xsl:variable name="baseLink">/Users/User/<xsl:value-of select="/root/user/id"/>/Replies/</xsl:variable>
<xsl:template name="rssRelativeLink"><xsl:value-of select="$baseLink"/></xsl:template>
<xsl:template name="specific"> <xsl:template name="specific">
<table width="95%" align="center" cellpadding="1" cellspacing="1" class="tablesurround"> <table width="95%" align="center" cellpadding="1" cellspacing="1" class="tablesurround">
<tr> <tr>
@ -20,9 +18,7 @@
<tr> <tr>
<td> <td>
<xsl:text>ñòðàíèöû:</xsl:text> <xsl:text>ñòðàíèöû:</xsl:text>
<xsl:apply-templates select="posts/pageOuter" mode="withCurrent"> <xsl:apply-templates select="posts/pageOuter" mode="withCurrent"/>
<xsl:with-param name="baseLink"><xsl:value-of select="$baseLink"/></xsl:with-param>
</xsl:apply-templates>
</td> </td>
</tr> </tr>
</table> </table>
@ -35,9 +31,7 @@
<tr> <tr>
<td> <td>
<xsl:text>ñòðàíèöû:</xsl:text> <xsl:text>ñòðàíèöû:</xsl:text>
<xsl:apply-templates select="posts/pageOuter" mode="withCurrent"> <xsl:apply-templates select="posts/pageOuter" mode="withCurrent"/>
<xsl:with-param name="baseLink"><xsl:value-of select="$baseLink"/></xsl:with-param>
</xsl:apply-templates>
</td> </td>
</tr> </tr>
</table> </table>

@ -7,8 +7,6 @@
<xsl:value-of select="user/name"/> <xsl:value-of select="user/name"/>
</xsl:template> </xsl:template>
<xsl:template name="isRssEnabled">true</xsl:template> <xsl:template name="isRssEnabled">true</xsl:template>
<xsl:variable name="baseLink">/Users/User/<xsl:value-of select="/root/user/id"/>/Threads/</xsl:variable>
<xsl:template name="rssRelativeLink"><xsl:value-of select="$baseLink"/></xsl:template>
<xsl:template name="specific"> <xsl:template name="specific">
<table width="95%" align="center" class="tablesurround"> <table width="95%" align="center" class="tablesurround">
<tr> <tr>
@ -26,9 +24,7 @@
<td colspan="5"> <td colspan="5">
<font class="onbody"> <font class="onbody">
<xsl:text>ñòðàíèöû:</xsl:text> <xsl:text>ñòðàíèöû:</xsl:text>
<xsl:apply-templates select="threads/pageOuter" mode="withCurrent"> <xsl:apply-templates select="threads/pageOuter" mode="withCurrent"/>
<xsl:with-param name="baseLink"><xsl:value-of select="$baseLink"/></xsl:with-param>
</xsl:apply-templates>
</font> </font>
</td> </td>
</tr> </tr>

@ -6,7 +6,7 @@
<xsl:template name="isLiteEnabled">false</xsl:template> <xsl:template name="isLiteEnabled">false</xsl:template>
<xsl:template name="isRssEnabled">false</xsl:template> <xsl:template name="isRssEnabled">false</xsl:template>
<xsl:template name="rssRelativeLink"><xsl:value-of select="currentUrl"/></xsl:template> <xsl:template name="rssRelativeLink"><xsl:value-of select="currentBaseUrl"/></xsl:template>
<xsl:template name="headerLink"> <xsl:template name="headerLink">
<xsl:param name="url"/> <xsl:param name="url"/>

@ -231,7 +231,9 @@
</xsl:template> </xsl:template>
<xsl:template match="pageOuter" mode="withCurrent"> <xsl:template match="pageOuter" mode="withCurrent">
<xsl:param name="baseLink"/> <xsl:param name="baseLink">
<xsl:value-of select="/root/currentBaseUrl"/>
</xsl:param>
<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>

@ -33,9 +33,7 @@
<td colspan="2"> <td colspan="2">
<font class="onbody"> <font class="onbody">
<xsl:text>ñòðàíèöû:</xsl:text> <xsl:text>ñòðàíèöû:</xsl:text>
<xsl:apply-templates select="threads/pageOuter" mode="withCurrent"> <xsl:apply-templates select="threads/pageOuter" mode="withCurrent"/>
<xsl:with-param name="baseLink">/Board/<xsl:value-of select="currentLocation/board/id"/>/</xsl:with-param>
</xsl:apply-templates>
</font> </font>
</td> </td>
</tr> </tr>

@ -93,9 +93,7 @@
<br/> <br/>
<div class="tdheader"> <div class="tdheader">
<xsl:text>ñòðàíèöû:</xsl:text> <xsl:text>ñòðàíèöû:</xsl:text>
<xsl:apply-templates select="posts/pageOuter" mode="withCurrent"> <xsl:apply-templates select="posts/pageOuter" mode="withCurrent"/>
<xsl:with-param name="baseLink">/BoardAsThread/<xsl:value-of select="currentLocation/board/id"/>/</xsl:with-param>
</xsl:apply-templates>
</div> </div>
<xsl:apply-templates select="posts/post"/> <xsl:apply-templates select="posts/post"/>
<div class="tdheader"> <div class="tdheader">

@ -18,9 +18,7 @@
<tr> <tr>
<td> <td>
<xsl:text>ñòðàíèöû:</xsl:text> <xsl:text>ñòðàíèöû:</xsl:text>
<xsl:apply-templates select="messages/pageOuter" mode="withCurrent"> <xsl:apply-templates select="messages/pageOuter" mode="withCurrent"/>
<xsl:with-param name="baseLink">/My/Conversations/Conversation/<xsl:value-of select="conversation/interlocutor/account/id"/>/</xsl:with-param>
</xsl:apply-templates>
</td> </td>
</tr> </tr>
</table> </table>
@ -33,9 +31,7 @@
<tr> <tr>
<td> <td>
<xsl:text>ñòðàíèöû:</xsl:text> <xsl:text>ñòðàíèöû:</xsl:text>
<xsl:apply-templates select="messages/pageOuter" mode="withCurrent"> <xsl:apply-templates select="messages/pageOuter" mode="withCurrent"/>
<xsl:with-param name="baseLink">/My/Conversations/Conversation/<xsl:value-of select="conversation/interlocutor/account/id"/>/</xsl:with-param>
</xsl:apply-templates>
</td> </td>
</tr> </tr>
</table> </table>

@ -26,9 +26,7 @@
<td colspan="3"> <td colspan="3">
<font class="onbody"> <font class="onbody">
<xsl:text>ñòðàíèöû:</xsl:text> <xsl:text>ñòðàíèöû:</xsl:text>
<xsl:apply-templates select="conversations/pageOuter" mode="withCurrent"> <xsl:apply-templates select="conversations/pageOuter" mode="withCurrent"/>
<xsl:with-param name="baseLink">/My/Conversations/</xsl:with-param>
</xsl:apply-templates>
</font> </font>
</td> </td>
</tr> </tr>

@ -9,9 +9,7 @@
<xsl:call-template name="threadInfo"/> <xsl:call-template name="threadInfo"/>
<div class="tdheader"> <div class="tdheader">
<xsl:text>ñòðàíèöû:</xsl:text> <xsl:text>ñòðàíèöû:</xsl:text>
<xsl:apply-templates select="posts/pageOuter" mode="withCurrent"> <xsl:apply-templates select="posts/pageOuter" mode="withCurrent"/>
<xsl:with-param name="baseLink">/Thread/<xsl:value-of select="currentLocation/thread/id"/>/</xsl:with-param>
</xsl:apply-templates>
</div> </div>
<xsl:apply-templates select="posts/post"> <xsl:apply-templates select="posts/post">
<xsl:with-param name="isReplyDisabled"><xsl:value-of select="thread/isLocked"/></xsl:with-param> <xsl:with-param name="isReplyDisabled"><xsl:value-of select="thread/isLocked"/></xsl:with-param>

@ -154,7 +154,9 @@
</xsl:template> </xsl:template>
<xsl:template match="pageOuter" mode="withCurrent"> <xsl:template match="pageOuter" mode="withCurrent">
<xsl:param name="baseLink"/> <xsl:param name="baseLink">
<xsl:value-of select="/root/currentBaseUrl"/>
</xsl:param>
<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>

Loading…
Cancel
Save