'isReadByInterlocutor' marker in PMMessage template

main
Inga 🏳‍🌈 14 years ago
parent 520a2de8c7
commit 6ea257d995
  1. 2
      Builder/IISMainHandler/build.txt
  2. 2
      Builder/IISUploadHandler/build.txt
  3. 8
      Common/dataobjects/PMMessage.cs
  4. 3
      static/css/global.css
  5. 3
      templates/Full/elems/PMInfo.xslt

@ -117,6 +117,11 @@ namespace FLocal.Common.dataobjects {
return this._incomingPMId;
}
}
public PMMessage incomingPM {
get {
return PMMessage.LoadById(this.incomingPMId.Value);
}
}
private bool _isRead;
public bool isRead {
@ -160,6 +165,9 @@ namespace FLocal.Common.dataobjects {
new XElement("body", context.outputParams.preprocessBodyIntermediate(this.body)),
new XElement("bodyUBB", this.bodyUBB)
);
if(this.direction == ENUM_DIRECTION_OUTGOING) {
result.Add(new XElement("isReadByInterlocutor", this.incomingPM.isRead));
}
if(additional.Length > 0) {
result.Add(additional);
}

@ -82,3 +82,6 @@ pre
[spoiler] [opener] {
cursor:hand;
}
.warning {
background-color:red;
}

@ -15,6 +15,9 @@
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="left" width="65%" valign="top">
<xsl:if test="isReadByInterlocutor='false'">
<xsl:attribute name="class">warning</xsl:attribute>
</xsl:if>
<a target="_blank" class="separate">
<img border="0" alt="" style="vertical-align: text-bottom">
<xsl:choose>

Loading…
Cancel
Save