'isReadByInterlocutor' marker in PMMessage template

main
Inga 🏳‍🌈 15 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; return this._incomingPMId;
} }
} }
public PMMessage incomingPM {
get {
return PMMessage.LoadById(this.incomingPMId.Value);
}
}
private bool _isRead; private bool _isRead;
public bool isRead { public bool isRead {
@ -160,6 +165,9 @@ namespace FLocal.Common.dataobjects {
new XElement("body", context.outputParams.preprocessBodyIntermediate(this.body)), new XElement("body", context.outputParams.preprocessBodyIntermediate(this.body)),
new XElement("bodyUBB", this.bodyUBB) new XElement("bodyUBB", this.bodyUBB)
); );
if(this.direction == ENUM_DIRECTION_OUTGOING) {
result.Add(new XElement("isReadByInterlocutor", this.incomingPM.isRead));
}
if(additional.Length > 0) { if(additional.Length > 0) {
result.Add(additional); result.Add(additional);
} }

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

@ -15,6 +15,9 @@
<table width="100%" border="0" cellpadding="0" cellspacing="0"> <table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr> <tr>
<td align="left" width="65%" valign="top"> <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"> <a target="_blank" class="separate">
<img border="0" alt="" style="vertical-align: text-bottom"> <img border="0" alt="" style="vertical-align: text-bottom">
<xsl:choose> <xsl:choose>

Loading…
Cancel
Save