]> err.no Git - scalable-opengroupware.org/blob - SOGo/UI/Mailer/UIxMailView.wox
fixed for libNGMime v4.5.210
[scalable-opengroupware.org] / SOGo / UI / Mailer / UIxMailView.wox
1 <?xml version='1.0' standalone='yes'?>
2 <var:component
3   xmlns="http://www.w3.org/1999/xhtml"
4   xmlns:var="http://www.skyrix.com/od/binding"
5   xmlns:const="http://www.skyrix.com/od/constant"
6   xmlns:uix="OGo:uix"
7   xmlns:rsrc="OGo:url"
8   xmlns:label="OGo:label"
9   className="UIxMailMainFrame"
10   title="panelTitle"
11   const:hideFolderTree="1"
12 >
13   <!-- TODO: refactor address rendering into an own component -->
14
15   <!-- 
16     Note: We cannot make this section static (like the toolbar) because the CC
17           list has a dynamic height (would require some tricky JavaScript).
18     -->
19   <table class="mailer_fieldtable">
20     <tr class="mailer_fieldrow">
21       <td class="mailer_fieldname" ><var:string label:value="Subject"/>:</td>
22       <td class="mailer_subjectfieldvalue">
23         <var:string value="clientObject.subject"
24                     formatter="context.mailSubjectFormatter"/>
25       </td>
26     </tr>
27     <tr class="mailer_fieldrow">
28       <td class="mailer_fieldname" ><var:string label:value="From"/>:</td>
29       <td class="mailer_fieldvalue">
30         <var:foreach list="clientObject.fromEnvelopeAddresses"
31                      item="currentAddress">
32           <a var:href="currentAddressLink">
33             <var:string value="currentAddress"
34                  formatter="context.mailEnvelopeFullAddressFormatter" /></a>
35         </var:foreach>
36       </td>
37     </tr>
38     <tr class="mailer_fieldrow">
39       <td class="mailer_fieldname" ><var:string label:value="Date"/>:</td>
40       <td class="mailer_fieldvalue">
41         <var:string value="clientObject.date" 
42                     formatter="context.mailDateFormatter"/>
43
44         <!-- TODO:
45         (<a rsrc:href="tbird_073_viewer.png">screenshot</a>)
46          -->
47       </td>
48     </tr>
49
50     <tr class="mailer_fieldrow">
51       <td class="mailer_fieldname" ><var:string label:value="To"/>:</td>
52       <td class="mailer_fieldvalue">
53         <var:foreach list="clientObject.toEnvelopeAddresses"
54                      item="currentAddress">
55           <a var:href="currentAddressLink">
56             <var:string value="currentAddress"
57                  formatter="context.mailEnvelopeFullAddressFormatter" /></a>
58         </var:foreach>
59       </td>
60     </tr>
61     <var:if condition="hasCC">
62       <tr class="mailer_fieldrow">
63         <td class="mailer_fieldname" ><var:string label:value="CC"/>:</td>
64         <td class="mailer_fieldvalue">
65           <var:foreach list="clientObject.ccEnvelopeAddresses" 
66                        item="currentAddress">
67             <a var:href="currentAddressLink">
68               <var:string value="currentAddress"
69                    formatter="context.mailEnvelopeFullAddressFormatter" /></a>
70             <br /> <!-- TODO: better to use li+CSS -->
71           </var:foreach>
72         </td>
73       </tr>
74     </var:if>
75   </table>
76   
77   <div class="mailer_mailcontent">
78     <var:component value="contentViewerComponent"
79                    bodyInfo="clientObject.bodyStructure" />
80   </div>
81
82   <script language="JavaScript">
83     markMailReadInWindow(window.opener, 
84       '<var:string value="clientObject.nameInContainer"/>');
85   </script>
86 </var:component>