Monotone-Parent: c9dd4206ad3d7a913acb09680d854a19153d46a7

Monotone-Revision: e8bfb90da0079ca2c3e5079818a7e7532b26ea31

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2007-07-27T19:59:46
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2007-07-27 19:59:46 +00:00
parent a450325cb7
commit 55bd55f9ae
3 changed files with 144 additions and 150 deletions
@@ -1,80 +1,40 @@
<?xml version="1.0" standalone="yes"?>
<!DOCTYPE div>
<div xmlns="http://www.w3.org/1999/xhtml"
xmlns:var="http://www.skyrix.com/od/binding"
xmlns:label="OGo:label"
class="linked_attachment_frame"
>
xmlns:var="http://www.skyrix.com/od/binding"
xmlns:label="OGo:label"
class="linked_attachment_frame">
<div class="linked_attachment_body">
<hr>
<!-- TODO: the table is a DUP to UIxMailView, own component? -->
<div class="bodyFields">
<span class="fieldName"><var:string label:value="Subject"/>:</span>
<var:string value="envelope.subject"
formatter="context.mailSubjectFormatter"/><br/>
<span class="fieldName"><var:string label:value="From"/>:</span>
<var:string value="fromAddresses"/><br/>
<span class="fieldName"><var:string label:value="Date"/>:</span>
<var:string value="envelope.date"
formatter="context.mailDateFormatter"/><br/>
<div class="bodyAdditionalFields">
<span class="fieldName"><var:string label:value="To"/>:</span>
<var:string value="toAddresses"/><br/>
<var:if condition="envelope.hasCC">
<span class="fieldName"><var:string label:value="CC"/>:</span>
<var:string value="ccAddresses"/>
</var:if>
</div>
</div>
<div class="bodyMailContent">
<var:component value="contentViewerComponent"
bodyInfo="contentInfo"
partPath="contentPartPath" />
</div>
<!-- TODO: the table is a DUP to UIxMailView, own component? -->
<table class="mailer_fieldtable">
<tr class="mailer_fieldrow">
<td class="mailer_fieldname" ><var:string label:value="Subject"/>:</td>
<td class="mailer_subjectfieldvalue">
<var:string value="envelope.subject"
formatter="context.mailSubjectFormatter"/>
<!--
<a var:href="pathToAttachment"
var:title="filenameForDisplay"
>(<var:string label:value="download" />)</a>
-->
</td>
</tr>
<tr class="mailer_fieldrow">
<td class="mailer_fieldname" ><var:string label:value="From"/>:</td>
<td class="mailer_fieldvalue">
<!-- compose link? -->
<var:foreach list="envelope.from" item="currentAddress">
<a var:href="currentAddressLink">
<var:string value="currentAddress"
formatter="context.mailEnvelopeFullAddressFormatter" /></a>
</var:foreach>
</td>
</tr>
<tr class="mailer_fieldrow">
<td class="mailer_fieldname" ><var:string label:value="Date"/>:</td>
<td class="mailer_fieldvalue">
<var:string value="envelope.date"
formatter="context.mailDateFormatter"/>
</td>
</tr>
<tr class="mailer_fieldrow">
<td class="mailer_fieldname" ><var:string label:value="To"/>:</td>
<td class="mailer_fieldvalue">
<!-- compose link? -->
<var:foreach list="envelope.to" item="currentAddress">
<a var:href="currentAddressLink">
<var:string value="currentAddress"
formatter="context.mailEnvelopeFullAddressFormatter" /></a>
</var:foreach>
</td>
</tr>
<var:if condition="envelope.hasCC">
<tr class="mailer_fieldrow">
<td class="mailer_fieldname" ><var:string label:value="CC"/>:</td>
<td class="mailer_fieldvalue">
<!-- compose link? -->
<var:foreach list="envelope.cc" item="currentAddress">
<a var:href="currentAddressLink">
<var:string value="currentAddress"
formatter="context.mailEnvelopeFullAddressFormatter" /></a>
<br /> <!-- TODO: better to use li+CSS -->
</var:foreach>
</td>
</tr>
</var:if>
</table>
<div class="mailer_mailcontent">
<var:component value="contentViewerComponent"
bodyInfo="contentInfo"
partPath="contentPartPath" />
</div>
<!-- debug
<pre><var:string value="envelope"/></pre>
<pre><var:string value="bodyInfo.body"/></pre>
-->
<!-- debug
<pre><var:string value="envelope"/></pre>
<pre><var:string value="bodyInfo.body"/></pre>
-->
</div>
</div>