Extract template for topic subscriptions
This commit is contained in:
@@ -58,13 +58,7 @@
|
||||
</xsl:when>
|
||||
<xsl:otherwise>
|
||||
<ul>
|
||||
<xsl:for-each select="$topicsubscriptions//topic">
|
||||
<li>
|
||||
<a href="{uForum:NiceTopicUrl(@id)}"><xsl:value-of select="title" /></a>
|
||||
-
|
||||
<a href="#" rel="{@id}" class="NotificationTopicUnsubscribe">Unsubscribe</a>
|
||||
</li>
|
||||
</xsl:for-each>
|
||||
<xsl:apply-templates select="$topicsubscriptions//topic" />
|
||||
</ul>
|
||||
</xsl:otherwise>
|
||||
</xsl:choose>
|
||||
@@ -81,5 +75,15 @@
|
||||
<a href="#" rel="{@id}" class="NotificationForumUnsubscribe">Unsubscribe</a>
|
||||
</li>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="topic">
|
||||
<li>
|
||||
<a href="{uForum:NiceTopicUrl(@id)}">
|
||||
<xsl:value-of select="title" />
|
||||
</a>
|
||||
<xsl:text> - </xsl:text>
|
||||
<a href="#" rel="{@id}" class="NotificationTopicUnsubscribe">Unsubscribe</a>
|
||||
</li>
|
||||
</xsl:template>
|
||||
|
||||
</xsl:stylesheet>
|
||||
Reference in New Issue
Block a user