Improved UI difference between 'new' and 'legacy' threads and boards

main
Inga 🏳‍🌈 15 years ago
parent f21c5cc194
commit 42dca126dc
  1. 2
      Builder/IISMainHandler/build.txt
  2. 2
      Builder/IISUploadHandler/build.txt
  3. 6
      templates/Full/elems/BoardInfo.xslt
  4. 21
      templates/Full/elems/ThreadInfo.xslt

@ -7,7 +7,7 @@
<a>
<xsl:attribute name="onClick">if(!confirm('Ïîìåòèòü âñå ñîîáùåíèÿ êàê ïðî÷èòàííûå?')) {event.returnValue=false; return false;} else { alert("Not implemented yet"); }</xsl:attribute>
<xsl:choose>
<xsl:when test="hasNewPosts='true'">
<xsl:when test="(hasNewPosts='true') and (lastPostInfo/post/id &gt; 10000000)">
<img border="0" width="17" height="21" src="/static/images/newposts.gif" alt=""/>
</xsl:when>
<xsl:otherwise>
@ -59,7 +59,7 @@
<xsl:template match="lastPostInfo">
<xsl:choose>
<xsl:when test="post">
<xsl:when test="post and (post/id &gt; 10000000)">
<xsl:apply-templates select="post/postDate/date" mode="dateTime"/><br />
<a>
<xsl:attribute name="href">/Thread/<xsl:value-of select="post/threadId"/>/p<xsl:value-of select="post/id"/>/</xsl:attribute>
@ -74,7 +74,7 @@
</img>
</xsl:when>
<xsl:otherwise>
<xsl:text>N/A</xsl:text>
<xsl:text>&#160;</xsl:text>
</xsl:otherwise>
</xsl:choose>
</xsl:template>

@ -76,13 +76,20 @@
</xsl:if>
</td>
<td nowrap="nowrap" align="center">
<xsl:apply-templates select="lastPostDate/date" mode="dateTime"/>
<xsl:text> </xsl:text>
<img alt="new" src="/static/images/new.gif">
<xsl:if test="lastPostId &lt; 10000000">
<xsl:attribute name="style">visibility:hidden</xsl:attribute>
</xsl:if>
</img>
<xsl:choose>
<xsl:when test="lastPostId &gt; 10000000">
<xsl:apply-templates select="lastPostDate/date" mode="dateTime"/>
<xsl:text> </xsl:text>
<img alt="new" src="/static/images/new.gif">
<xsl:if test="lastPostId &lt; 10000000">
<xsl:attribute name="style">visibility:hidden</xsl:attribute>
</xsl:if>
</img>
</xsl:when>
<xsl:otherwise>
<xsl:text>&#160;</xsl:text>
</xsl:otherwise>
</xsl:choose>
</td>
</tr>
</xsl:template>

Loading…
Cancel
Save