You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sling.apache.org by ol...@apache.org on 2016/04/19 22:07:48 UTC

svn commit: r1739994 - /sling/trunk/samples/fling/src/main/resources/apps/fling/page/messages/html.html

Author: olli
Date: Tue Apr 19 20:07:48 2016
New Revision: 1739994

URL: http://svn.apache.org/viewvc?rev=1739994&view=rev
Log:
SLING-5655 Use Commons Messaging in Fling sample

tune message rendering

Modified:
    sling/trunk/samples/fling/src/main/resources/apps/fling/page/messages/html.html

Modified: sling/trunk/samples/fling/src/main/resources/apps/fling/page/messages/html.html
URL: http://svn.apache.org/viewvc/sling/trunk/samples/fling/src/main/resources/apps/fling/page/messages/html.html?rev=1739994&r1=1739993&r2=1739994&view=diff
==============================================================================
--- sling/trunk/samples/fling/src/main/resources/apps/fling/page/messages/html.html (original)
+++ sling/trunk/samples/fling/src/main/resources/apps/fling/page/messages/html.html Tue Apr 19 20:07:48 2016
@@ -38,15 +38,15 @@
             <td></td>
             <td>Subject</td>
             <td>From</td>
-            <td>Message ID</td>
+            <td>Text</td>
           </tr>
         </thead>
         <tbody>
           <tr data-th-each="message,status : ${messages}">
-            <td data-th-text="${status.count}">count</td>
-            <td data-th-text="${message.subject}">subject</td>
-            <td data-th-text="${message.from[0].address}">from</td>
-            <td data-th-text="${message.messageID}">message id</td>
+            <td><span data-th-text="${status.count}">count</span></td>
+            <td><span data-th-text="${message.subject}">subject</span></td>
+            <td><span data-th-text="${message.from[0].address}">from</span></td>
+            <td><span data-th-text="${message.contentType.startsWith('text/plain')} ? ${message.content} : 'not a plain text message, not rendering content'">content</span></td>
           </tr>
         </tbody>
       </table>