Lite: topicstarter moderation, posts transfer

main
Inga 🏳‍🌈 14 years ago
parent c1d86d8847
commit be6bdf2dbe
  1. 40
      templates/Lite/PostPunish.xslt
  2. 31
      templates/Lite/elems/PostInfo.xslt

@ -27,6 +27,19 @@
<xsl:text>Òèï:</xsl:text><br/> <xsl:text>Òèï:</xsl:text><br/>
<xsl:apply-templates select="punishmentTypes/punishmentType"/> <xsl:apply-templates select="punishmentTypes/punishmentType"/>
<br/> <br/>
<input type="checkbox" name="transfer" value="transfer" id="Transfer"/>
<label for="Transfer">
<xsl:text> Ďĺđĺíĺńňč ńîîáůĺíčĺ â đŕçäĺë</xsl:text>
</label>
<select name="transfer_boardId">
<option value="-1">Âűáĺđčňĺ đŕçäĺë</option>
<xsl:apply-templates select="categories/category" mode="select"/>
</select>
<input type="checkbox" name="transfer_subThread" value="transfer_subThread" id="Transfer_SubThread"/>
<label for="Transfer_SubThread">
<xsl:text> ńî âńĺěč îňâĺňŕěč</xsl:text>
</label>
<br/>
<br/> <br/>
<xsl:text>Êîììåíòàðèé: </xsl:text> <xsl:text>Êîììåíòàðèé: </xsl:text>
<br/> <br/>
@ -77,6 +90,9 @@
<input type="radio" name="punishmentTypeId"> <input type="radio" name="punishmentTypeId">
<xsl:attribute name="id">punishmentTypeId_<xsl:value-of select="id"/></xsl:attribute> <xsl:attribute name="id">punishmentTypeId_<xsl:value-of select="id"/></xsl:attribute>
<xsl:attribute name="value"><xsl:value-of select="id"/></xsl:attribute> <xsl:attribute name="value"><xsl:value-of select="id"/></xsl:attribute>
<xsl:if test="not(/root/isTrueModerator = 'true') and not(weight = '0')">
<xsl:attribute name="disabled">disabled</xsl:attribute>
</xsl:if>
</input> </input>
<label> <label>
<xsl:attribute name="for">punishmentTypeId_<xsl:value-of select="id"/></xsl:attribute> <xsl:attribute name="for">punishmentTypeId_<xsl:value-of select="id"/></xsl:attribute>
@ -92,4 +108,28 @@
<br/> <br/>
</xsl:template> </xsl:template>
<xsl:template match="category" mode="select">
<optgroup>
<xsl:attribute name="label"><xsl:value-of select="name"/></xsl:attribute>
<xsl:apply-templates select="boards/board" mode="select"/>
</optgroup>
</xsl:template>
<xsl:template match="board" mode="select">
<xsl:param name="prefix"/>
<option>
<xsl:if test="not(/root/isTrueModerator = 'true') and not(isTransferTarget = 'true')">
<xsl:attribute name="disabled">disabled</xsl:attribute>
</xsl:if>
<xsl:value-of select="$prefix"/>
<xsl:value-of select="name"/>
</option>
<xsl:apply-templates select="subBoards/board" mode="select">
<xsl:with-param name="prefix">
<xsl:value-of select="$prefix"/>
<xsl:text>&#160;&#160;</xsl:text>
</xsl:with-param>
</xsl:apply-templates>
</xsl:template>
</xsl:stylesheet> </xsl:stylesheet>

@ -92,6 +92,37 @@
<xsl:apply-templates select="punishmentDate/date" mode="dateTime"/> <xsl:apply-templates select="punishmentDate/date" mode="dateTime"/>
<xsl:text>)</xsl:text> <xsl:text>)</xsl:text>
<br/> <br/>
<xsl:if test="transfer">
<xsl:choose>
<xsl:when test="transfer/isSubthreadTransfer='true'">
<xsl:text>Ïîäâåòêà áûëà ïåðåíåñåíà</xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:text>Ñîîáùåíèå áûëî ïåðåíåñåíî</xsl:text>
</xsl:otherwise>
</xsl:choose>
<xsl:if test="transfer/oldParentPost">
<xsl:text> èç îáñóæäåíèÿ ñîîáùåíèÿ </xsl:text>
<a>
<xsl:attribute name="href">
<xsl:text>/Post/</xsl:text>
<xsl:value-of select="transfer/oldParentPost/post/id"/>
<xsl:text>/</xsl:text>
</xsl:attribute>
<xsl:value-of select="transfer/oldParentPost/post/title"/>
</a>
</xsl:if>
<xsl:text> èç ðàçäåëà </xsl:text>
<a>
<xsl:attribute name="href">
<xsl:text>/Board/</xsl:text>
<xsl:value-of select="transfer/oldBoard/board/id"/>
<xsl:text>/</xsl:text>
</xsl:attribute>
<xsl:value-of select="transfer/oldBoard/board/name"/>
</a>
<br/>
</xsl:if>
<br/> <br/>
</font> </font>
</td> </td>

Loading…
Cancel
Save