PostInfo and UserInfoBar new appearance

main
Inga 🏳‍🌈 14 years ago
parent 8fc8268240
commit a292a99a19
  1. 2
      Builder/IISMainHandler/build.txt
  2. 83
      static/css/modern/global.css
  3. 20
      static/css/modern/penartur.css
  4. 34
      templates/Modern/AllPosts.xslt
  5. 77
      templates/Modern/Post.xslt
  6. 100
      templates/Modern/Thread.xslt
  7. 34
      templates/Modern/UserPosts.xslt
  8. 22
      templates/Modern/elems/Main.xslt
  9. 243
      templates/Modern/elems/PostInfo.xslt
  10. 63
      templates/Modern/elems/UserInfoBar.xslt

@ -0,0 +1,83 @@
pre
{
overflow-x: auto;
overflow-y: hidden;
margin: 10px;
width: 99%;
font-family:Consolas, monospace;
}
[type=button].iconize, [type=submit].iconize {
padding-left:16px;
background-position:center left;
background-repeat:no-repeat;
font-size:10px;
}
[pseudolink] {
cursor:hand;
text-decoration:underline;
}
[spoiler] [inner] {
display:none;
}
[spoiler] [opener] {
cursor:hand;
}
.warning {
background-color:red;
}
.userbar_name {
font-size:2em;
}
.userbar_title {
font-weight:bold;
}
.avatar {
border:none;
max-height:10em;
height:expression((this.scrollHeight >= 120) ? '120px' : 'auto');
max-width:10em;
width:expression((this.scrollHeight >= 120) ? '120px' : 'auto');
}
.userbarcontainer {
border:none;
width:10em;
min-width:10em;
max-width:10em;
}
.UG_Blondes {
color:red !important;
background-color:yellow !important;
font-weight: bold !important;
}
.UG_Moderators {
color:blue !important;
}
.UG_Administrators {
color:black !important;
}
p {
margin:0em;
}
.punishment {
color:red !important;
}
.punishment.withdrawed {
color:red !important;
text-decoration: line-through;
}
.currentLink {
font-weight:bolder;font-style:italic;
}
input {
z-index:90000;
}
[nobr] {
white-space: nowrap;
}
.postcontainer {
border-style:none none solid none;
padding-bottom:5pt;
margin-bottom:5pt;
}

@ -0,0 +1,20 @@
body { font-size:11pt; }
A:link {text-decoration:none;color:#aaaaaa}
A:visited{text-decoration:none;color:#666666}
A:active{text-decoration:none;color:#999999}
A:hover{COLOR:white;text-decoration:none}
BODY, P, TABLE, TD, TR {font-family:"Calibri"}
BODY{color:#ffffff;background-color:black}
FORM{DISPLAY:inline;MARGIN-BOTTOM:0}
.formboxes{font-size:1em;font-family:"Segoe Print";color:#eeeeee;BACKGROUND-COLOR:black}
PRE{background-color:#303030;font-size:0.9em;font-family:"Consolas";BORDER:#999999 1px solid;PADDING: 0.2em 0.3em;MARGIN:0 0.5em 0 1em;color:white}
.confluent{COLOR:#141414;}
.postcontainer {
border-color:white;
}

@ -7,39 +7,17 @@
</xsl:template> </xsl:template>
<xsl:template name="isRssEnabled">true</xsl:template> <xsl:template name="isRssEnabled">true</xsl:template>
<xsl:template name="specific"> <xsl:template name="specific">
<table width="95%" align="center" cellpadding="1" cellspacing="1" class="tablesurround"> <div>
<tr>
<td>
<table cellpadding="0" cellspacing="1" width="100%" class="tableborders">
<tr class="tdheader">
<td>
<table width="100%" cellspacing="1" cellpadding="3" border="0">
<tr>
<td>
<xsl:text>ñòðàíèöû:</xsl:text> <xsl:text>ñòðàíèöû:</xsl:text>
<xsl:apply-templates select="posts/pageOuter" mode="withCurrent"/> <xsl:apply-templates select="posts/pageOuter" mode="withCurrent"/>
</td> </div>
</tr> <div id="postsContainer">
</table>
</td>
</tr>
<xsl:apply-templates select="posts/post"/> <xsl:apply-templates select="posts/post"/>
<tr class="tdheader"> </div>
<td> <div>
<table width="100%" cellspacing="1" cellpadding="3" border="0">
<tr>
<td>
<xsl:text>ñòðàíèöû:</xsl:text> <xsl:text>ñòðàíèöû:</xsl:text>
<xsl:apply-templates select="posts/pageOuter" mode="withCurrent"/> <xsl:apply-templates select="posts/pageOuter" mode="withCurrent"/>
</td> </div>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</xsl:template> </xsl:template>
</xsl:stylesheet> </xsl:stylesheet>

@ -7,84 +7,11 @@
</xsl:template> </xsl:template>
<xsl:template name="isLiteEnabled">true</xsl:template> <xsl:template name="isLiteEnabled">true</xsl:template>
<xsl:template name="specific"> <xsl:template name="specific">
<!--xsl:if test="not(get/param[@name='headers'] = 'false')"> <div id="postsContainer">
<xsl:call-template name="threadInfo"/>
</xsl:if>
<br /-->
<table width="95%" align="center" cellpadding="1" cellspacing="1" class="tablesurround">
<tr>
<td>
<table cellpadding="0" cellspacing="1" width="100%" class="tableborders">
<xsl:apply-templates select="posts/post"> <xsl:apply-templates select="posts/post">
<xsl:with-param name="isReplyDisabled"><xsl:value-of select="thread/isLocked"/></xsl:with-param> <xsl:with-param name="isReplyDisabled"><xsl:value-of select="thread/isLocked"/></xsl:with-param>
</xsl:apply-templates> </xsl:apply-templates>
</table> </div>
</td>
</tr>
</table>
<!--br />
<xsl:if test="not(get/param[@name='headers'] = 'false')">
<xsl:call-template name="threadInfo"/>
</xsl:if-->
</xsl:template>
<xsl:template name="threadInfo">
<table width="95%" align="center" cellpadding="1" cellspacing="1" class="tablesurround">
<tr>
<td>
<table cellpadding="3" cellspacing="1" width="100%" class="tableborders">
<tr class="darktable">
<td>
<table width="100%" cellpadding="0" cellspacing="0">
<tr class="darktable">
<td align="left" width="33%">
<font class="catandforum">
<xsl:apply-templates select="currentLocation" mode="breadcrumbs"/>
</font>
</td>
<td width="33%" align="right">
<table border="0" class="tablesurround">
<tr>
<td class="navigation" nowrap="nowrap">
<a>
<xsl:attribute name="href">/Board/<xsl:value-of select="currentLocation/post/parent/thread/parent/board/id"/>/</xsl:attribute>
<img src="/static/images/all.gif" alt="" border="0" width="19" height="15" style="vertical-align: text-bottom" />
<xsl:text>Ñïèñîê</xsl:text>
</a>
</td>
<td class="navigation" nowrap="nowrap">
<form method="get" name="fullview">
<select name="fullview" class="formboxes" style="font-size:10px">
<option value="0" >Íîðì</option>
<option value="1" >Îôò</option>
<option value="2" selected="selected">Ìóñ</option>
</select>
</form>
</td>
<td class="navigation" nowrap="nowrap">
<a>
<xsl:attribute name="href">/Thread/<xsl:value-of select="currentLocation/post/parent/thread/id"/>/p<xsl:value-of select="currentLocation/post/id"/></xsl:attribute>
<img alt="*" src="/static/images/flat.gif" style="vertical-align: text-bottom" />
<xsl:text>Ïëîñêèé</xsl:text>
</a>
</td>
<td class="navigation" nowrap="nowrap">
<a>
<img src="/static/images/greythreaded.gif" border="0" style="vertical-align: text-bottom" alt="Äåðåâî" />
<xsl:text>Äåðåâî</xsl:text>
</a>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</xsl:template> </xsl:template>
</xsl:stylesheet> </xsl:stylesheet>

@ -9,107 +9,19 @@
<xsl:template name="isRssEnabled">true</xsl:template> <xsl:template name="isRssEnabled">true</xsl:template>
<xsl:template name="rssRelativeLink"><xsl:value-of select="/root/currentBaseUrl"/>0-reversed</xsl:template> <xsl:template name="rssRelativeLink"><xsl:value-of select="/root/currentBaseUrl"/>0-reversed</xsl:template>
<xsl:template name="specific"> <xsl:template name="specific">
<!--xsl:if test="not(get/param[@name='headers'] = 'false')"> <div>
<xsl:call-template name="threadInfo"/>
</xsl:if>
<br /-->
<table width="95%" align="center" cellpadding="1" cellspacing="1" class="tablesurround">
<tr>
<td>
<table cellpadding="0" cellspacing="1" width="100%" class="tableborders">
<tr class="tdheader">
<td>
<table width="100%" cellspacing="1" cellpadding="3" border="0">
<tr>
<td>
<xsl:text>ñòðàíèöû:</xsl:text> <xsl:text>ñòðàíèöû:</xsl:text>
<xsl:apply-templates select="posts/pageOuter" mode="withCurrent"/> <xsl:apply-templates select="posts/pageOuter" mode="withCurrent"/>
</td> </div>
</tr> <div id="postsContainer">
</table>
</td>
</tr>
<xsl:apply-templates select="posts/post"> <xsl:apply-templates select="posts/post">
<xsl:with-param name="isReplyDisabled"><xsl:value-of select="thread/isLocked"/></xsl:with-param> <xsl:with-param name="isReplyDisabled"><xsl:value-of select="thread/isLocked"/></xsl:with-param>
</xsl:apply-templates> </xsl:apply-templates>
<tr class="tdheader"> </div>
<td> <div>
<table width="100%" cellspacing="1" cellpadding="3" border="0">
<tr>
<td>
<xsl:text>ñòðàíèöû:</xsl:text> <xsl:text>ñòðàíèöû:</xsl:text>
<xsl:apply-templates select="posts/pageOuter" mode="withCurrent"/> <xsl:apply-templates select="posts/pageOuter" mode="withCurrent"/>
</td> </div>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<!--br />
<xsl:if test="not(get/param[@name='headers'] = 'false')">
<xsl:call-template name="threadInfo"/>
</xsl:if-->
</xsl:template>
<xsl:template name="threadInfo">
<table width="95%" align="center" cellpadding="1" cellspacing="1" class="tablesurround">
<tr>
<td>
<table cellpadding="3" cellspacing="1" width="100%" class="tableborders">
<tr class="darktable">
<td>
<table width="100%" cellpadding="0" cellspacing="0">
<tr class="darktable">
<td align="left" width="33%">
<font class="catandforum">
<xsl:apply-templates select="currentLocation" mode="breadcrumbs"/>
</font>
</td>
<td width="33%" align="right">
<table border="0" class="tablesurround">
<tr>
<td class="navigation" nowrap="nowrap">
<a>
<xsl:attribute name="href">/Board/<xsl:value-of select="currentLocation/thread/parent/board/id"/>/</xsl:attribute>
<img src="/static/images/all.gif" alt="" border="0" width="19" height="15" style="vertical-align: text-bottom" />
<xsl:text>Ñïèñîê</xsl:text>
</a>
</td>
<td class="navigation" nowrap="nowrap">
<form method="get" name="fullview">
<select name="fullview" class="formboxes" style="font-size:10px">
<option value="0" >Íîðì</option>
<option value="1" >Îôò</option>
<option value="2" selected="selected">Ìóñ</option>
</select>
</form>
</td>
<td class="navigation" nowrap="nowrap">
<a>
<img alt="*" src="/static/images/greyflat.gif" style="vertical-align: text-bottom" />
<xsl:text>Ïëîñêèé</xsl:text>
</a>
</td>
<td class="navigation" nowrap="nowrap">
<a>
<img src="/static/images/greythreaded.gif" border="0" style="vertical-align: text-bottom" alt="Äåðåâî" />
<xsl:text>Äåðåâî</xsl:text>
</a>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</xsl:template> </xsl:template>
</xsl:stylesheet> </xsl:stylesheet>

@ -8,39 +8,17 @@
</xsl:template> </xsl:template>
<xsl:template name="isRssEnabled">true</xsl:template> <xsl:template name="isRssEnabled">true</xsl:template>
<xsl:template name="specific"> <xsl:template name="specific">
<table width="95%" align="center" cellpadding="1" cellspacing="1" class="tablesurround"> <div>
<tr>
<td>
<table cellpadding="0" cellspacing="1" width="100%" class="tableborders">
<tr class="tdheader">
<td>
<table width="100%" cellspacing="1" cellpadding="3" border="0">
<tr>
<td>
<xsl:text>ñòðàíèöû:</xsl:text> <xsl:text>ñòðàíèöû:</xsl:text>
<xsl:apply-templates select="posts/pageOuter" mode="withCurrent"/> <xsl:apply-templates select="posts/pageOuter" mode="withCurrent"/>
</td> </div>
</tr> <div id="postsContainer">
</table>
</td>
</tr>
<xsl:apply-templates select="posts/post"/> <xsl:apply-templates select="posts/post"/>
<tr class="tdheader"> </div>
<td> <div>
<table width="100%" cellspacing="1" cellpadding="3" border="0">
<tr>
<td>
<xsl:text>ñòðàíèöû:</xsl:text> <xsl:text>ñòðàíèöû:</xsl:text>
<xsl:apply-templates select="posts/pageOuter" mode="withCurrent"/> <xsl:apply-templates select="posts/pageOuter" mode="withCurrent"/>
</td> </div>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</xsl:template> </xsl:template>
</xsl:stylesheet> </xsl:stylesheet>

@ -5,9 +5,9 @@
<xsl:template match="/root"> <xsl:template match="/root">
<html> <html>
<head> <head>
<link rel="stylesheet" href="/static/css/global.css?v1" type="text/css" /> <link rel="stylesheet" href="/static/css/modern/global.css" type="text/css" />
<link rel="stylesheet" type="text/css" skin="skin"> <link rel="stylesheet" type="text/css" skin="skin">
<xsl:attribute name="href">/static/css/<xsl:value-of select="skin/name"/>.css</xsl:attribute> <xsl:attribute name="href">/static/css/modern/penartur.css</xsl:attribute>
</link> </link>
<link rel="shortcut icon" href="/static/favicons/smirk.ico" type="image/x-icon" /> <link rel="shortcut icon" href="/static/favicons/smirk.ico" type="image/x-icon" />
<script language="Javascript" type="text/javascript" src="/static/js/common.js"><xsl:text> </xsl:text></script> <script language="Javascript" type="text/javascript" src="/static/js/common.js"><xsl:text> </xsl:text></script>
@ -305,5 +305,23 @@
</a> </a>
</xsl:template> </xsl:template>
<xsl:template match="user" mode="userNick">
<a nobr="nobr">
<xsl:attribute name="class">
<xsl:text>separate </xsl:text>
<xsl:text>UG_</xsl:text><xsl:value-of select="group/name"/>
</xsl:attribute>
<xsl:value-of select="name"/>
<xsl:choose>
<xsl:when test="isAdministrator='true'">
<img src="/static/images/adm.gif" border="0"/>
</xsl:when>
<xsl:when test="isModerator='true'">
<img src="/static/images/mod.gif" border="0"/>
</xsl:when>
</xsl:choose>
</a>
</xsl:template>
</xsl:stylesheet> </xsl:stylesheet>

@ -4,57 +4,22 @@
<xsl:import href="UserInfoBar.xslt"/> <xsl:import href="UserInfoBar.xslt"/>
<xsl:template match="post"> <xsl:template match="post">
<xsl:param name="isReplyDisabled">true</xsl:param> <xsl:param name="isReplyDisabled">true</xsl:param>
<tr> <div class="postcontainer" style="clear:both">
<td>
<table width="100%" cellspacing="1" cellpadding="3" border="0">
<tr>
<td width="120" valign="top" class="darktable" rowspan="2">
<a><xsl:attribute name="name">Post<xsl:value-of select="id"/></xsl:attribute></a> <a><xsl:attribute name="name">Post<xsl:value-of select="id"/></xsl:attribute></a>
<div class="userbarcontainer" style="float:left">
<xsl:apply-templates select="poster/user" mode="userInfoBar"/> <xsl:apply-templates select="poster/user" mode="userInfoBar"/>
</td> </div>
<td class="subjecttable"> <div class="linkscontainer" style="float:right">
<table width="100%" border="0" cellpadding="0" cellspacing="0"> <xsl:if test="isOwner='true'">
<tr>
<td align="left" width="80%" valign="top">
<a target="_blank" class="separate">
<xsl:attribute name="href">/Post/<xsl:value-of select="id"/>/</xsl:attribute>
<img border="0" alt="" style="vertical-align: text-bottom">
<xsl:choose>
<xsl:when test="isUnread='true'">
<xsl:attribute name="src">/static/images/message-<xsl:value-of select="layerName"/>-notread.gif</xsl:attribute>
</xsl:when>
<xsl:otherwise>
<xsl:attribute name="src">/static/images/message-<xsl:value-of select="layerName"/>-read.gif</xsl:attribute>
</xsl:otherwise>
</xsl:choose>
</img>
</a>
<b class="separate"><xsl:value-of select="title"/></b>
<xsl:if test="isUnread='true'">
<img alt="new" src="/static/images/new.gif" />
</xsl:if>
<xsl:if test="parentPost/post">
<font class="small separate">
<xsl:text>[</xsl:text>
<a> <a>
<xsl:attribute name="title"><xsl:value-of select="parentPost/post/bodyShort"/></xsl:attribute> <xsl:attribute name="href">/Post/<xsl:value-of select="id"/>/Edit/</xsl:attribute>
<xsl:attribute name="href">/Thread/<xsl:value-of select="threadId"/>/p<xsl:value-of select="parentPost/post/id"/>/</xsl:attribute> <xsl:apply-templates select="postDate/date" mode="navigationImageFor">
<xsl:text>re: </xsl:text> <xsl:with-param name="src">edit.gif</xsl:with-param>
<xsl:value-of select="parentPost/post/poster/user/name"/> <xsl:with-param name="alt">Ïðàâêà</xsl:with-param>
</xsl:apply-templates>
</a> </a>
<xsl:text>]</xsl:text>
</font>
</xsl:if> </xsl:if>
<br /> <xsl:text> </xsl:text>
<font class="small" style="padding-left:2em"><xsl:apply-templates select="postDate/date" mode="dateTime"/></font>
</td>
<td align="right" width="20%">
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td align="right">
<table class="tablesurround" border="0">
<tr>
<td class="navigation">
<a> <a>
<xsl:if test="$isReplyDisabled='false'"> <xsl:if test="$isReplyDisabled='false'">
<xsl:if test="/root/session/sessionKey"> <xsl:if test="/root/session/sessionKey">
@ -68,35 +33,19 @@
<xsl:with-param name="alt">Îòâåò</xsl:with-param> <xsl:with-param name="alt">Îòâåò</xsl:with-param>
</xsl:apply-templates> </xsl:apply-templates>
</a> </a>
</td> <xsl:text> </xsl:text>
<td class="navigation">
<a> <a>
<xsl:if test="isOwner='true'"> <xsl:if test="/root/session/sessionKey">
<xsl:attribute name="href">/Post/<xsl:value-of select="id"/>/Edit/</xsl:attribute> <xsl:attribute name="href">/Post/<xsl:value-of select="id"/>/PMReply/</xsl:attribute>
<xsl:attribute name="onClick">submitSelText(this.href);return false;</xsl:attribute>
<xsl:attribute name="onMouseDown">submitSelText(this.href);return false;</xsl:attribute>
</xsl:if> </xsl:if>
<xsl:apply-templates select="postDate/date" mode="navigationImageFor"> <xsl:apply-templates select="postDate/date" mode="navigationImageFor">
<xsl:with-param name="src">edit.gif</xsl:with-param> <xsl:with-param name="src">email2.gif</xsl:with-param>
<xsl:with-param name="alt">Ïðàâêà</xsl:with-param> <xsl:with-param name="alt">Îòâåòèòü â ÏÌ</xsl:with-param>
</xsl:apply-templates>
</a>
</td>
<td class="navigation">
<a target="_blank">
<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>
<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> </xsl:apply-templates>
</a> </a>
</td> <xsl:text> </xsl:text>
<td class="navigation">
<xsl:choose> <xsl:choose>
<xsl:when test="isPunishmentEnabled='true'"> <xsl:when test="isPunishmentEnabled='true'">
<a> <a>
@ -116,101 +65,73 @@
</a> </a>
</xsl:otherwise> </xsl:otherwise>
</xsl:choose> </xsl:choose>
</td> </div>
<td class="navigation"> <div class="postcontent">
<a target="_blank" class="separate">
<xsl:attribute name="href">/Post/<xsl:value-of select="id"/>/</xsl:attribute>
<xsl:variable name="postDate"><xsl:apply-templates select="postDate/date" mode="dateTime"/></xsl:variable>
<xsl:attribute name="title"><xsl:value-of select="$postDate"/></xsl:attribute>
<img border="0" alt="" style="vertical-align: text-bottom">
<xsl:choose>
<xsl:when test="isUnread='true'">
<xsl:attribute name="src">/static/images/message-<xsl:value-of select="layerName"/>-notread.gif</xsl:attribute>
</xsl:when>
<xsl:otherwise>
<xsl:attribute name="src">/static/images/message-<xsl:value-of select="layerName"/>-read.gif</xsl:attribute>
</xsl:otherwise>
</xsl:choose>
</img>
</a>
<xsl:text> </xsl:text>
<xsl:if test="parentPost/post">
<font class="small separate">
<xsl:text>[</xsl:text>
<a> <a>
<xsl:if test="/root/session/sessionKey"> <xsl:attribute name="title"><xsl:value-of select="parentPost/post/bodyShort"/></xsl:attribute>
<xsl:attribute name="href">/Post/<xsl:value-of select="id"/>/PMReply/</xsl:attribute> <xsl:attribute name="href">/Thread/<xsl:value-of select="threadId"/>/p<xsl:value-of select="parentPost/post/id"/>/</xsl:attribute>
<xsl:attribute name="onClick">submitSelText(this.href);return false;</xsl:attribute> <xsl:text>re: </xsl:text>
<xsl:attribute name="onMouseDown">submitSelText(this.href);return false;</xsl:attribute> <xsl:value-of select="parentPost/post/poster/user/name"/>
</xsl:if>
<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> </a>
</td> <xsl:text>]</xsl:text>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td class="lighttable">
<table width="100%" cellspacing="0" cellpadding="0" style="table-layout: fixed">
<tr>
<td>
<br />
<font class="post">
<xsl:value-of select="body" disable-output-escaping="yes" />
<!--<xsl:copy-of select="body"/>-->
<br />
<br />
</font> </font>
</td> </xsl:if>
</tr> <div class="postbody">
<xsl:value-of select="body" disable-output-escaping="yes" />
</div>
<xsl:apply-templates select="specific"/> <xsl:apply-templates select="specific"/>
<xsl:if test="poster/user/signature != ''"> <xsl:if test="poster/user/signature != ''">
<tr> <div style="width:100%;max-height:3.5em;height: expression( this.scrollHeight > 49 ? '50px' : 'auto' );overflow:hidden;text-align:right;font-size:0.8em;">
<td> <xsl:value-of select="poster/user/signature" disable-output-escaping="yes" />
<div style="width:100%;max-height:50px;height: expression( this.scrollHeight > 49 ? '50px' : 'auto' );overflow:hidden">
<font size="-2"><xsl:value-of select="poster/user/signature" disable-output-escaping="yes" /><br /></font>
</div> </div>
</td>
</tr>
</xsl:if> </xsl:if>
</table> </div>
</td> </div>
</tr>
</table>
</td>
</tr>
</xsl:template> </xsl:template>
<xsl:template match="specific/changeInfo"> <xsl:template match="specific/changeInfo">
<xsl:if test="(revision != '') and (revision != '0')"> <xsl:if test="(revision != '') and (revision != '0')">
<tr> <span style="font-size:0.8em" class="revision">
<td>
<font size="-2">
<xsl:text>Ýòî ñîîáùåíèå áûëî îòðåäàêòèðîâàíî ïîëüçîâàòåëåì </xsl:text>
<xsl:value-of select="revision"/> <xsl:value-of select="revision"/>
<xsl:text> ðàç, ïîñëåäíèé ðàç </xsl:text> <xsl:text> ïðàâîê, ïîñëåäíÿÿ </xsl:text>
<xsl:apply-templates select="lastChangeDate/date" mode="dateTime"/> <xsl:apply-templates select="lastChangeDate/date" mode="dateTime"/>
<br/> </span>
<br/> <xsl:text> </xsl:text>
</font>
</td>
</tr>
</xsl:if> </xsl:if>
</xsl:template> </xsl:template>
<xsl:template match="specific/punishment"> <xsl:template match="specific/punishment">
<tr> <xsl:if test="not(isWithdrawed='true')">
<td> <span style="font-size:0.8em" class="punishment">
<font size="-2">
<xsl:attribute name="class">
<xsl:text>punishment</xsl:text>
<xsl:if test="isWithdrawed='true'">
<xsl:text> withdrawed</xsl:text>
</xsl:if>
</xsl:attribute>
<xsl:value-of select="punishmentType/description"/> <xsl:value-of select="punishmentType/description"/>
<xsl:text> (</xsl:text> <xsl:text>. </xsl:text>
<xsl:value-of select="punishmentType/weightDescription"/>
<xsl:text>). </xsl:text>
<xsl:value-of select="comment"/> <xsl:value-of select="comment"/>
<xsl:text> (</xsl:text> <xsl:text> (</xsl:text>
<xsl:apply-templates select="moderator/user" mode="userLink"/> <xsl:apply-templates select="moderator/user" mode="userLink"/>
<xsl:text>, </xsl:text> <xsl:text>, </xsl:text>
<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/>
<xsl:if test="transfer"> <xsl:if test="transfer">
<xsl:text> </xsl:text>
<xsl:choose> <xsl:choose>
<xsl:when test="transfer/isSubthreadTransfer='true'"> <xsl:when test="transfer/isSubthreadTransfer='true'">
<xsl:text>Ïîäâåòêà áûëà ïåðåíåñåíà</xsl:text> <xsl:text>Ïîäâåòêà áûëà ïåðåíåñåíà</xsl:text>
@ -239,31 +160,20 @@
</xsl:attribute> </xsl:attribute>
<xsl:value-of select="transfer/oldBoard/board/name"/> <xsl:value-of select="transfer/oldBoard/board/name"/>
</a> </a>
<br/> <xsl:text>.</xsl:text>
</xsl:if> </xsl:if>
<xsl:if test="layerChange"> <xsl:if test="layerChange">
<xsl:choose> <xsl:text> </xsl:text>
<xsl:when test="layerChange/isSubthreadChange='true'"> <xsl:text>Èñõîäíûé ñëîé </xsl:text>
<xsl:text>Ñëîé ïîäâåòêè áûë èçìåí¸í</xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:text>Ñëîé ñîîáùåíèÿ áûë èçìåí¸í</xsl:text>
</xsl:otherwise>
</xsl:choose>
<xsl:text> ñ </xsl:text>
<xsl:value-of select="layerChange/oldLayer/layer/name"/> <xsl:value-of select="layerChange/oldLayer/layer/name"/>
<br/> <xsl:text>.</xsl:text>
</xsl:if>
</span>
</xsl:if> </xsl:if>
<br/>
</font>
</td>
</tr>
</xsl:template> </xsl:template>
<xsl:template match="specific/thread"> <xsl:template match="specific/thread">
<tr> <div class="discussionlinkcontainer">
<td>
<font size="-1">
<a> <a>
<xsl:attribute name="href"> <xsl:attribute name="href">
<xsl:text>/Thread/</xsl:text> <xsl:text>/Thread/</xsl:text>
@ -274,14 +184,7 @@
<xsl:value-of select="afterLastRead"/> <xsl:value-of select="afterLastRead"/>
</xsl:if> </xsl:if>
</xsl:attribute> </xsl:attribute>
<xsl:choose> <xsl:text>Îáñóäèòü</xsl:text>
<xsl:when test="totalPosts &gt; 1">
<xsl:text>Îáñóæäåíèå ýòîãî ñîîáùåíèÿ</xsl:text>
</xsl:when>
<xsl:otherwise>
<xsl:text>Íà÷àòü îáñóæäåíèå</xsl:text>
</xsl:otherwise>
</xsl:choose>
</a> </a>
<xsl:if test="totalPosts &gt; 1"> <xsl:if test="totalPosts &gt; 1">
<span class="separate"><xsl:value-of select="totalPosts"/></span> <span class="separate"><xsl:value-of select="totalPosts"/></span>
@ -294,11 +197,7 @@
</a> </a>
</xsl:if> </xsl:if>
</xsl:if> </xsl:if>
<br/> </div>
<br/>
</font>
</td>
</tr>
</xsl:template> </xsl:template>
</xsl:stylesheet> </xsl:stylesheet>

@ -2,56 +2,45 @@
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml"> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml">
<xsl:template match="user" mode="userInfoBar"> <xsl:template match="user" mode="userInfoBar">
<table border="0" cellpadding="0" cellspacing="0"> <div class="user">
<tr> <xsl:attribute name="onMouseOver">for(var i=0;i&lt;this.childNodes.length;i++) if(this.childNodes[i].nodeName == "DIV") this.childNodes[i].style.display="block";</xsl:attribute>
<td> <xsl:attribute name="onMouseOut">for(var i=0;i&lt;this.childNodes.length;i++) if(this.childNodes[i].nodeName == "DIV" &amp;&amp; this.childNodes[i].getAttribute("default") != "default") this.childNodes[i].style.display="none";</xsl:attribute>
<div class="userbar_name">
<xsl:if test="not(avatar)">
<xsl:attribute name="default">default</xsl:attribute>
</xsl:if>
<xsl:if test="avatar">
<xsl:attribute name="style">display:none</xsl:attribute>
</xsl:if>
<xsl:apply-templates select="current()" mode="userLink"/> <xsl:apply-templates select="current()" mode="userLink"/>
</td> </div>
</tr> <div class="userbar_title" style="display:none">
<tr> <xsl:value-of select="title"/>
<td class="small"> </div>
<b><xsl:value-of select="title"/></b>
</td>
</tr>
<tr>
<td class="small">
<i></i>
</td>
</tr>
<tr>
<td class="small">
<i><font color="red"></font></i>
</td>
</tr>
<xsl:if test="avatar"> <xsl:if test="avatar">
<tr> <div class="userbar_avatar" default="default">
<td class="small"> <a>
<xsl:attribute name="href">/Users/User/<xsl:value-of select="id"/>/Info/</xsl:attribute>
<img alt="" class="avatar"> <img alt="" class="avatar">
<xsl:attribute name="src">/Upload/Item/<xsl:value-of select="avatar"/>/</xsl:attribute> <xsl:attribute name="src">/Upload/Item/<xsl:value-of select="avatar"/>/</xsl:attribute>
</img> </img>
</td> </a>
</tr> </div>
</xsl:if> </xsl:if>
<tr> <div class="userbar_regdate" style="display:none">
<td class="small">
<xsl:text>Ðåã.: </xsl:text> <xsl:text>Ðåã.: </xsl:text>
<xsl:apply-templates select="regDate/date" mode="date"/> <xsl:apply-templates select="regDate/date" mode="date"/>
</td> </div>
</tr> <div class="userbar_totalposts" style="display:none">
<tr>
<td class="small">
<xsl:text>Ñîîáùåíèé: </xsl:text> <xsl:text>Ñîîáùåíèé: </xsl:text>
<xsl:value-of select="totalPosts"/> <xsl:value-of select="totalPosts"/>
</td> </div>
</tr>
<xsl:if test="location!=''"> <xsl:if test="location!=''">
<tr> <div class="userbar_location" style="display:none">
<td class="small">
<xsl:text>Èç: </xsl:text> <xsl:text>Èç: </xsl:text>
<xsl:value-of select="location"/> <xsl:value-of select="location"/>
</td> </div>
</tr>
</xsl:if> </xsl:if>
</table> </div>
</xsl:template> </xsl:template>
</xsl:stylesheet> </xsl:stylesheet>
Loading…
Cancel
Save