1
0
mirror of https://github.com/moparisthebest/mail synced 2024-11-10 19:25:03 -05:00
mail/src/tpl/read.html

33 lines
1.6 KiB
HTML
Raw Normal View History

2013-09-18 14:45:58 -04:00
<div class="controls">
2013-10-16 12:56:18 -04:00
<button ng-click="remove(selected)" class="btn-icon">&#xe005;</button>
2013-10-12 13:39:09 -04:00
<button ng-click="write(selected)" class="btn-icon">&#xe002;</button>
2013-09-18 14:45:58 -04:00
<button ng-click="write()" class="btn-icon">&#xe006;</button>
</div><!--/.controls-->
2013-09-11 11:01:02 -04:00
2013-09-18 14:45:58 -04:00
<div class="view-read">
<div class="headers">
<p class="subject">{{selected.subject}}</p>
2013-09-26 07:26:57 -04:00
<p class="date">{{selected.sentDate | date:'EEEE, MMM d, yyyy h:mm a'}}</p>
2013-09-18 14:45:58 -04:00
<p class="address">From: <span class="label">{{selected.from[0].name || selected.from[0].address}}</span></p>
<p class="address">To: <span class="label" ng-repeat="t in selected.to">{{t.address}} </span></p>
2013-09-11 09:19:18 -04:00
<div ng-switch="selected.cc !== undefined">
2013-09-18 14:45:58 -04:00
<p class="address" ng-switch-when="true">
CC: <span class="label" ng-repeat="t in selected.cc">{{t.address}} </span>
2013-09-11 09:19:18 -04:00
</p>
</div>
2013-09-18 14:45:58 -04:00
</div><!--/.headers-->
2013-09-11 09:19:18 -04:00
<div class="seperator-line"></div>
<div class="body" ng-switch="selected.html === true">
<!-- sandbox untrusted markup from html emails in an iframe. The "allow-same-origin" attribute is required to dynamically adjust the height of the iframe. Script execution is not allowed. -->
<iframe ng-switch-when="true" sandbox="allow-same-origin" srcdoc="{{selected.body}}" seamless frame-load></iframe>
<!-- Render parts of a text only email in paragraphs for easier styling -->
<p ng-repeat="part in selected.bodyDisplayParts track by $index">
2013-09-18 14:45:58 -04:00
<span ng-switch="part.length !== 0">
<span ng-switch-when="true">{{part}}</span>
</span>
</p>
</div><!--/.body-->
2013-09-18 14:45:58 -04:00
</div><!--/.view-read-->