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

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

Loading…
Cancel
Save