Current user actions are not shown in rss

main
Inga 🏳‍🌈 14 years ago
parent de2b54ebfe
commit 7c22d7b5e0
  1. 2
      Builder/IISMainHandler/build.txt
  2. 2
      templates/Rss/WhoIsOnline.xslt
  3. 48
      templates/Rss/elems/PostInfo.xslt

@ -3,7 +3,7 @@
<xsl:import href="elems\Main.xslt"/>
<xsl:template name="specificTitle">Ęňî â îíëŕéíĺ</xsl:template>
<xsl:template name="specific">
<xsl:apply-templates select="users/user"/>
<xsl:apply-templates select="users/user[not(name=/root/session/user/name)]"/>
</xsl:template>
<xsl:template match="users/user">

@ -2,29 +2,31 @@
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="post">
<item>
<title>
<xsl:value-of select="title"/>
<xsl:text> îò </xsl:text>
<xsl:value-of select="poster/user/name"/>
</title>
<description>
<xsl:value-of select="body"/>
</description>
<link>
<xsl:value-of select="$mainUrl"/>
<xsl:text>/Post/</xsl:text>
<xsl:value-of select="id"/>
<xsl:text>/</xsl:text>
</link>
<guid>
<xsl:text>post-</xsl:text>
<xsl:value-of select="id"/>
</guid>
<pubDate>
<xsl:apply-templates select="postDate/date" mode="dateTime"/>
</pubDate>
</item>
<xsl:if test="not(poster/user/name = /session/user/name)">
<item>
<title>
<xsl:value-of select="title"/>
<xsl:text> îò </xsl:text>
<xsl:value-of select="poster/user/name"/>
</title>
<description>
<xsl:value-of select="body"/>
</description>
<link>
<xsl:value-of select="$mainUrl"/>
<xsl:text>/Post/</xsl:text>
<xsl:value-of select="id"/>
<xsl:text>/</xsl:text>
</link>
<guid>
<xsl:text>post-</xsl:text>
<xsl:value-of select="id"/>
</guid>
<pubDate>
<xsl:apply-templates select="postDate/date" mode="dateTime"/>
</pubDate>
</item>
</xsl:if>
</xsl:template>
</xsl:stylesheet>
Loading…
Cancel
Save