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

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

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

@ -100,9 +100,7 @@
<td colspan="5">
<font class="onbody">
<xsl:text>ñòðàíèöû:</xsl:text>
<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>
<xsl:apply-templates select="posts/pageOuter" mode="withCurrent"/>
</font>
</td>
</tr>
@ -113,9 +111,7 @@
<td colspan="5">
<font class="onbody">
<xsl:text>ñòðàíèöû:</xsl:text>
<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>
<xsl:apply-templates select="posts/pageOuter" mode="withCurrent"/>
</font>
</td>
</tr>

@ -19,9 +19,7 @@
<tr>
<td>
<xsl:text>ñòðàíèöû:</xsl:text>
<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>
<xsl:apply-templates select="messages/pageOuter" mode="withCurrent"/>
</td>
</tr>
</table>
@ -34,9 +32,7 @@
<tr>
<td>
<xsl:text>ñòðàíèöû:</xsl:text>
<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>
<xsl:apply-templates select="messages/pageOuter" mode="withCurrent"/>
</td>
</tr>
</table>

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

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

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

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

@ -20,9 +20,7 @@
<td colspan="3">
<font class="onbody">
<xsl:text>ñòðàíèöû:</xsl:text>
<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>
<xsl:apply-templates select="polls/pageOuter" mode="withCurrent"/>
</font>
</td>
</tr>

@ -7,8 +7,6 @@
<xsl:value-of select="user/name"/>
</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">
<table width="95%" align="center" cellpadding="1" cellspacing="1" class="tablesurround">
<tr>
@ -20,9 +18,7 @@
<tr>
<td>
<xsl:text>ñòðàíèöû:</xsl:text>
<xsl:apply-templates select="posts/pageOuter" mode="withCurrent">
<xsl:with-param name="baseLink"><xsl:value-of select="$baseLink"/></xsl:with-param>
</xsl:apply-templates>
<xsl:apply-templates select="posts/pageOuter" mode="withCurrent"/>
</td>
</tr>
</table>
@ -35,9 +31,7 @@
<tr>
<td>
<xsl:text>ñòðàíèöû:</xsl:text>
<xsl:apply-templates select="posts/pageOuter" mode="withCurrent">
<xsl:with-param name="baseLink"><xsl:value-of select="$baseLink"/></xsl:with-param>
</xsl:apply-templates>
<xsl:apply-templates select="posts/pageOuter" mode="withCurrent"/>
</td>
</tr>
</table>

@ -7,8 +7,6 @@
<xsl:value-of select="user/name"/>
</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">
<table width="95%" align="center" cellpadding="1" cellspacing="1" class="tablesurround">
<tr>
@ -20,9 +18,7 @@
<tr>
<td>
<xsl:text>ñòðàíèöû:</xsl:text>
<xsl:apply-templates select="posts/pageOuter" mode="withCurrent">
<xsl:with-param name="baseLink"><xsl:value-of select="$baseLink"/></xsl:with-param>
</xsl:apply-templates>
<xsl:apply-templates select="posts/pageOuter" mode="withCurrent"/>
</td>
</tr>
</table>
@ -35,9 +31,7 @@
<tr>
<td>
<xsl:text>ñòðàíèöû:</xsl:text>
<xsl:apply-templates select="posts/pageOuter" mode="withCurrent">
<xsl:with-param name="baseLink"><xsl:value-of select="$baseLink"/></xsl:with-param>
</xsl:apply-templates>
<xsl:apply-templates select="posts/pageOuter" mode="withCurrent"/>
</td>
</tr>
</table>

@ -7,8 +7,6 @@
<xsl:value-of select="user/name"/>
</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">
<table width="95%" align="center" class="tablesurround">
<tr>
@ -26,9 +24,7 @@
<td colspan="5">
<font class="onbody">
<xsl:text>ñòðàíèöû:</xsl:text>
<xsl:apply-templates select="threads/pageOuter" mode="withCurrent">
<xsl:with-param name="baseLink"><xsl:value-of select="$baseLink"/></xsl:with-param>
</xsl:apply-templates>
<xsl:apply-templates select="threads/pageOuter" mode="withCurrent"/>
</font>
</td>
</tr>

@ -6,7 +6,7 @@
<xsl:template name="isLiteEnabled">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:param name="url"/>

@ -231,7 +231,9 @@
</xsl:template>
<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:apply-templates select="pages/page" mode="withoutCurrent">
<xsl:with-param name="baseLink"><xsl:value-of select="$baseLink"/></xsl:with-param>

@ -33,9 +33,7 @@
<td colspan="2">
<font class="onbody">
<xsl:text>ñòðàíèöû:</xsl:text>
<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>
<xsl:apply-templates select="threads/pageOuter" mode="withCurrent"/>
</font>
</td>
</tr>

@ -93,9 +93,7 @@
<br/>
<div class="tdheader">
<xsl:text>ñòðàíèöû:</xsl:text>
<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>
<xsl:apply-templates select="posts/pageOuter" mode="withCurrent"/>
</div>
<xsl:apply-templates select="posts/post"/>
<div class="tdheader">

@ -18,9 +18,7 @@
<tr>
<td>
<xsl:text>ñòðàíèöû:</xsl:text>
<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>
<xsl:apply-templates select="messages/pageOuter" mode="withCurrent"/>
</td>
</tr>
</table>
@ -33,9 +31,7 @@
<tr>
<td>
<xsl:text>ñòðàíèöû:</xsl:text>
<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>
<xsl:apply-templates select="messages/pageOuter" mode="withCurrent"/>
</td>
</tr>
</table>

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

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

@ -154,7 +154,9 @@
</xsl:template>
<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:apply-templates select="pages/page" mode="withoutCurrent">
<xsl:with-param name="baseLink"><xsl:value-of select="$baseLink"/></xsl:with-param>

Loading…
Cancel
Save