Navigation icons improved

main
Inga 🏳‍🌈 14 years ago
parent d8d63ac89a
commit 976570b1a1
  1. 2
      Builder/IISMainHandler/build.txt
  2. BIN
      static/images/slowpoke.png
  3. 24
      templates/Full/elems/Main.xslt
  4. 20
      templates/Full/elems/PMInfo.xslt
  5. 35
      templates/Full/elems/PostInfo.xslt

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 KiB

@ -64,6 +64,30 @@
<xsl:value-of select="*/name"/>
</xsl:template>
<xsl:template match="date" mode="navigationImageFor">
<xsl:param name="alt"/>
<xsl:param name="src"/>
<img border="0" style="vertical-align: text-bottom">
<xsl:attribute name="src">
<xsl:text>/static/images/</xsl:text>
<xsl:choose>
<xsl:when test="year = /root/current/date/year">
<xsl:value-of select="$src"/>
</xsl:when>
<xsl:otherwise>
<xsl:text>slowpoke.png</xsl:text>
</xsl:otherwise>
</xsl:choose>
</xsl:attribute>
<xsl:attribute name="alt">
<xsl:value-of select="$alt"/>
</xsl:attribute>
<xsl:attribute name="title">
<xsl:value-of select="$alt"/>
</xsl:attribute>
</img>
</xsl:template>
<xsl:template match="date" mode="_date">
<xsl:choose>
<xsl:when test="year=/root/current/date/year and month=/root/current/date/month and mday=/root/current/date/mday">

@ -46,22 +46,34 @@
<td class="navigation">
<a>
<xsl:attribute name="href">/My/Conversations/PMReply/<xsl:value-of select="id"/>/</xsl:attribute>
<img src="/static/images/reply.gif" border="0" alt="Ответ на сообщение" width="27" height="14" title="Ответ на сообщение" style="vertical-align: text-bottom" />
<xsl:apply-templates select="postDate/date" mode="navigationImageFor">
<xsl:with-param name="src">reply.gif</xsl:with-param>
<xsl:with-param name="alt">Îòâåò</xsl:with-param>
</xsl:apply-templates>
</a>
</td>
<td class="navigation">
<a>
<img src="/static/images/edit.gif" border="0" alt="Правка сообщения" title="Правка сообщения" width="21" height="14" style="vertical-align: text-bottom" />
<xsl:apply-templates select="postDate/date" mode="navigationImageFor">
<xsl:with-param name="src">edit.gif</xsl:with-param>
<xsl:with-param name="alt">Ïðàâêà</xsl:with-param>
</xsl:apply-templates>
</a>
</td>
<td class="navigation">
<a target="_blank">
<img src="/static/images/print.gif" border="0" alt="Печать сообщения" title="Печать сообщения" />
<xsl:apply-templates select="postDate/date" mode="navigationImageFor">
<xsl:with-param name="src">print.gif</xsl:with-param>
<xsl:with-param name="alt">Ïå÷àòü</xsl:with-param>
</xsl:apply-templates>
</a>
</td>
<td class="navigation">
<a>
<img src="/static/images/email2.gif" border="0" alt="Ответить приватом" title="Ответить приватом" />
<xsl:apply-templates select="postDate/date" mode="navigationImageFor">
<xsl:with-param name="src">email2.gif</xsl:with-param>
<xsl:with-param name="alt">Îòâåòèòü â ÏÌ</xsl:with-param>
</xsl:apply-templates>
</a>
</td>
</tr>

@ -63,7 +63,10 @@
<xsl:attribute name="onMouseDown">submitSelText(this.href);return false;</xsl:attribute>
</xsl:if>
</xsl:if>
<img src="/static/images/reply.gif" border="0" alt="Ответ на сообщение" width="27" height="14" title="Ответ на сообщение" style="vertical-align: text-bottom" />
<xsl:apply-templates select="postDate/date" mode="navigationImageFor">
<xsl:with-param name="src">reply.gif</xsl:with-param>
<xsl:with-param name="alt">Îòâåò</xsl:with-param>
</xsl:apply-templates>
</a>
</td>
<td class="navigation">
@ -71,17 +74,26 @@
<xsl:if test="isOwner='true'">
<xsl:attribute name="href">/Post/<xsl:value-of select="id"/>/Edit/</xsl:attribute>
</xsl:if>
<img src="/static/images/edit.gif" border="0" alt="Правка сообщения" title="Правка сообщения" width="21" height="14" style="vertical-align: text-bottom" />
<xsl:apply-templates select="postDate/date" mode="navigationImageFor">
<xsl:with-param name="src">edit.gif</xsl:with-param>
<xsl:with-param name="alt">Ïðàâêà</xsl:with-param>
</xsl:apply-templates>
</a>
</td>
<td class="navigation">
<a target="_blank">
<img src="/static/images/print.gif" border="0" alt="Печать сообщения" title="Печать сообщения" />
<xsl:apply-templates select="postDate/date" mode="navigationImageFor">
<xsl:with-param name="src">print.gif</xsl:with-param>
<xsl:with-param name="alt">Ïå÷àòü</xsl:with-param>
</xsl:apply-templates>
</a>
</td>
<td class="navigation">
<a>
<img src="/static/images/addreminder.gif" border="0" alt="Добавить тему в напоминания!" title="Добавить тему в напоминания!" />
<xsl:apply-templates select="postDate/date" mode="navigationImageFor">
<xsl:with-param name="src">addreminder.gif</xsl:with-param>
<xsl:with-param name="alt">Çàïîìíèòü</xsl:with-param>
</xsl:apply-templates>
</a>
</td>
<td class="navigation">
@ -89,12 +101,18 @@
<xsl:when test="isPunishmentEnabled='true'">
<a>
<xsl:attribute name="href">/Post/<xsl:value-of select="id"/>/Punish/</xsl:attribute>
<img src="/static/images/punish.gif" border="0" alt="Модерировать сообщение" title="Модерировать сообщение" style="vertical-align: text-bottom" />
<xsl:apply-templates select="postDate/date" mode="navigationImageFor">
<xsl:with-param name="src">punish.gif</xsl:with-param>
<xsl:with-param name="alt">Ìîäåðèðîâàòü</xsl:with-param>
</xsl:apply-templates>
</a>
</xsl:when>
<xsl:otherwise>
<a>
<img src="/static/images/notifymod.gif" border="0" alt="Известить модератора" title="Известить модератора" />
<xsl:apply-templates select="postDate/date" mode="navigationImageFor">
<xsl:with-param name="src">notifymod.gif</xsl:with-param>
<xsl:with-param name="alt">Èçâåñòèòü ìîäåðàòîðà</xsl:with-param>
</xsl:apply-templates>
</a>
</xsl:otherwise>
</xsl:choose>
@ -106,7 +124,10 @@
<xsl:attribute name="onClick">submitSelText(this.href);return false;</xsl:attribute>
<xsl:attribute name="onMouseDown">submitSelText(this.href);return false;</xsl:attribute>
</xsl:if>
<img src="/static/images/email2.gif" border="0" alt="Ответить приватом" title="Ответить приватом" />
<xsl:apply-templates select="postDate/date" mode="navigationImageFor">
<xsl:with-param name="src">email2.gif</xsl:with-param>
<xsl:with-param name="alt">Îòâåòèòü â ÏÌ</xsl:with-param>
</xsl:apply-templates>
</a>
</td>
</tr>

Loading…
Cancel
Save