'History' link implemented on user info page

main
Inga 🏳‍🌈 15 years ago
parent 2ed0907c01
commit 646360d9ff
  1. 2
      Builder/IISMainHandler/build.txt
  2. 2
      Builder/IISUploadHandler/build.txt
  3. 8
      IISMainHandler/handlers/response/UserInfoHandler.cs
  4. 3
      templates/Full/UserInfo.xslt

@ -22,8 +22,16 @@ namespace FLocal.IISHandler.handlers.response {
override protected XElement[] getSpecificData(WebContext context) {
User user = User.LoadById(int.Parse(context.requestParts[1]));
Account account = null;
if(context.session != null) {
try {
account = Account.LoadByUser(user);
} catch(NotFoundInDBException) {
}
}
return new XElement[] {
user.exportToXmlForViewing(context),
(account == null) ? null : new XElement("accountId", account.id.ToString()), //for PM history, PM send etc
};
}

@ -186,6 +186,9 @@
</a>
<xsl:text> | </xsl:text>
<a>
<xsl:if test="accountId">
<xsl:attribute name="href">/Conversation/<xsl:value-of select="accountId"/>/</xsl:attribute>
</xsl:if>
<img src="/static/images/sundial.gif" border="0" style="vertical-align: text-bottom" />
<xsl:text>Èñòîðèÿ</xsl:text>
</a>

Loading…
Cancel
Save