Headers panel improvements

main
Inga 🏳‍🌈 14 years ago
parent 8598cd60a1
commit e002446817
  1. 2
      Builder/IISMainHandler/build.txt
  2. 2
      Common/BBCodes/User.cs
  3. 4
      IISMainHandler/HandlersFactory.cs
  4. 27
      templates/Full/UserPollsParticipated.xslt
  5. 29
      templates/Full/UserPosts.xslt
  6. 29
      templates/Full/UserReplies.xslt
  7. 2
      templates/Full/elems/Main.xslt
  8. 1
      templates/Full/elems/MyHeader.xslt
  9. 1
      templates/Full/elems/UploadHeader.xslt
  10. 12
      templates/Full/elems/UsersHeader.xslt
  11. 2
      templates/Lite/elems/Main.xslt

@ -13,7 +13,7 @@ namespace FLocal.Common.BBCodes {
public override string Format(ITextFormatter formatter) {
var user = dataobjects.User.LoadByName(this.Default);
return String.Format("<a class=\"separate UG_{0}\" href=\"/Users/User/{1}/\">{2}</a>", this.Safe(user.userGroup.name), user.id, this.Safe(user.name));
return String.Format("<a class=\"separate UG_{0}\" href=\"/Users/User/{1}/Info/\">{2}</a>", this.Safe(user.userGroup.name), user.id, this.Safe(user.name));
}
}

@ -134,9 +134,11 @@ namespace FLocal.IISHandler {
return new handlers.WrongUrlHandler();
}
if(context.requestParts.Length == 3) {
return new handlers.response.UserInfoHandler();
throw new RedirectException("/Users/User/" + context.requestParts[2] + "/Info/");
}
switch(context.requestParts[3].ToLower()) {
case "info":
return new handlers.response.UserInfoHandler();
case "posts":
return new handlers.response.UserPostsHandler();
case "replies":

@ -4,33 +4,6 @@
<xsl:import href="elems\PollShortInfo.xslt"/>
<xsl:template name="specificTitle">Îďđîńű</xsl:template>
<xsl:template name="specific">
<table width="95%" align="center" cellpadding="1" cellspacing="1" class="tablesurround">
<tr>
<td>
<table cellpadding="3" cellspacing="1" width="100%" border="0" class="tableborders">
<tr class="darktable">
<td colspan="6">
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td colspan="2" class="catandforum">
<a>
<xsl:attribute name="href">/Users/</xsl:attribute>
<xsl:text>Ïîëüçîâàòåëè</xsl:text>
</a>
<xsl:text> &gt;&gt; </xsl:text>
<xsl:apply-templates select="user" mode="userLink"/>
<xsl:text> &gt;&gt; </xsl:text>
<xsl:text>Îïðîñû ñ ó÷àñòèåì ïîëüçîâàòåëÿ</xsl:text>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<br/>
<table width="95%" align="center" class="tablesurround">
<tr>
<td>

@ -7,35 +7,6 @@
<xsl:value-of select="user/name"/>
</xsl:template>
<xsl:template name="specific">
<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">
<a>
<xsl:attribute name="href">/Users/</xsl:attribute>
<xsl:text>Ïîëüçîâàòåëè</xsl:text>
</a>
<xsl:text> &gt;&gt; </xsl:text>
<xsl:apply-templates select="user" mode="userLink"/>
<xsl:text> &gt;&gt; </xsl:text>
<xsl:text>Ïîñòû</xsl:text>
</font>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<br />
<table width="95%" align="center" cellpadding="1" cellspacing="1" class="tablesurround">
<tr>
<td>

@ -7,35 +7,6 @@
<xsl:value-of select="user/name"/>
</xsl:template>
<xsl:template name="specific">
<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">
<a>
<xsl:attribute name="href">/Users/</xsl:attribute>
<xsl:text>Ïîëüçîâàòåëè</xsl:text>
</a>
<xsl:text> &gt;&gt; </xsl:text>
<xsl:apply-templates select="user" mode="userLink"/>
<xsl:text> &gt;&gt; </xsl:text>
<xsl:text>Îòâåòû</xsl:text>
</font>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<br />
<table width="95%" align="center" cellpadding="1" cellspacing="1" class="tablesurround">
<tr>
<td>

@ -198,7 +198,7 @@
<xsl:text>separate </xsl:text>
<xsl:text>UG_</xsl:text><xsl:value-of select="group/name"/>
</xsl:attribute>
<xsl:attribute name="href">/Users/User/<xsl:value-of select="id"/>/</xsl:attribute>
<xsl:attribute name="href">/Users/User/<xsl:value-of select="id"/>/Info/</xsl:attribute>
<xsl:value-of select="name"/>
<xsl:if test="isModerator='true'">
<img src="/static/images/mod.gif" border="0"/>

@ -57,7 +57,6 @@
</td>
</tr>
</table>
<center>&#160;&#160;</center>
</xsl:template>
</xsl:stylesheet>

@ -23,7 +23,6 @@
</td>
</tr>
</table>
<center>&#160;&#160;</center>
</xsl:template>
</xsl:stylesheet>

@ -1,5 +1,6 @@
<?xml version="1.0" encoding="Windows-1251"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="http://www.w3.org/1999/xhtml">
<xsl:import href="UserHeader.xslt"/>
<xsl:template name="usersHeader">
<table width="95%" align="center" class="tablesurround" cellpadding="1" cellspacing="1">
@ -22,13 +23,22 @@
<xsl:with-param name="url">/Users/Online/</xsl:with-param>
<xsl:with-param name="text">Â îíëàéíå</xsl:with-param>
</xsl:call-template>
<xsl:text> | </xsl:text>
<xsl:if test="user">
<xsl:call-template name="headerLink">
<xsl:with-param name="url">/Users/User/<xsl:value-of select="user/id"/>/</xsl:with-param>
<xsl:with-param name="text"><xsl:value-of select="user/name"/></xsl:with-param>
</xsl:call-template>
</xsl:if>
</td>
</tr>
</table>
</td>
</tr>
</table>
<center>&#160;&#160;</center>
<xsl:if test="user">
<xsl:call-template name="userHeader"/>
</xsl:if>
</xsl:template>
</xsl:stylesheet>

@ -204,7 +204,7 @@
<xsl:text>separate </xsl:text>
<xsl:text>UG_</xsl:text><xsl:value-of select="group/name"/>
</xsl:attribute>
<xsl:attribute name="href">/Users/User/<xsl:value-of select="id"/>/</xsl:attribute>
<xsl:attribute name="href">/Users/User/<xsl:value-of select="id"/>/Info/</xsl:attribute>
<xsl:value-of select="name"/>
<xsl:if test="isModerator='true'">
<xsl:text>^M</xsl:text>

Loading…
Cancel
Save