<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -176,6 +176,10 @@ class Message {
                 this.kind == PROJECT_REQUEST_APPROVAL || this.kind == PROJECT_REQUEST_DISAPPROVAL
     }
 
+	def isDirect() {
+		this.kind == OTHER
+	}
+
     private static withMessage(Map args, Closure callable) {
         def message = new Message(subject: args.subject)
         message.body = args.body</diff>
      <filename>grails-app/domain/grailscrowd/core/Message.groovy</filename>
    </modified>
    <modified>
      <diff>@@ -18,7 +18,12 @@
 
             &lt;span class=&quot;content-font&quot;&gt;
                 &lt;p&gt;
-                    ${message.body.encodeAsHTML()}                    
+                    &lt;g:if test=&quot;${message.isDirect()}&quot;&gt;
+						${message.body.encodeAsHTML()}
+					&lt;/g:if&gt;
+					&lt;g:else&gt;
+						${message.body}
+					&lt;/g:else&gt;	                    
                 &lt;/p&gt;
                 &lt;g:render template=&quot;messageVariation&quot; model=&quot;[message:message]&quot; /&gt;
                 &lt;g:link class=&quot;inline-link&quot; controller=&quot;mailbox&quot;&gt;&amp;laquo; Go back to mailbox&lt;/g:link&gt;</diff>
      <filename>grails-app/views/mailbox/message.gsp</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>d464cd211e69d8e58eb58a54227aca89c091f2df</id>
    </parent>
  </parents>
  <author>
    <name>Dmitriy Kopylenko</name>
    <email>dima767@gmail.com</email>
  </author>
  <url>http://github.com/dima767/grails-crowd/commit/e1308761d6f7d866d83041ad56bb495b1df12ff7</url>
  <id>e1308761d6f7d866d83041ad56bb495b1df12ff7</id>
  <committed-date>2009-06-20T10:34:31-07:00</committed-date>
  <authored-date>2009-06-20T10:34:31-07:00</authored-date>
  <message>Added isDirect() to the Message and message.gsp to defffirentiate between system and direct messages rendering</message>
  <tree>f31d6a96b9e74d5f849f429f8fbc237c9751df9a</tree>
  <committer>
    <name>Dmitriy Kopylenko</name>
    <email>dima767@gmail.com</email>
  </committer>
</commit>
