mail/src/tpl/read.html

29 lines
1.6 KiB
HTML
Raw Normal View History

2013-09-18 14:45:58 -04:00
<div class="controls">
<button ng-click="remove(selected)" class="btn-icon" title="Delete mail">&#xe005;</button>
2013-11-08 15:55:08 -05:00
<button ng-click="state.writer.write(selected)" class="btn-icon" title="Reply to">&#xe002;</button>
<button ng-click="state.writer.write()" class="btn-icon" title="New mail">&#xe006;</button>
2013-09-18 14:45:58 -04:00
</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" ng-click="closeReadMode()">{{selected.subject || 'No subject'}}</p>
2013-09-26 07:26:57 -04:00
<p class="date">{{selected.sentDate | date:'EEEE, MMM d, yyyy h:mm a'}}</p>
<p class="address">From: <span class="label" data-icon-append="&#xe009;">{{selected.from[0].name || selected.from[0].address}}</span></p>
<p class="address">To: <span class="label" data-icon-append="&#xe009;" 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">{{part}}</p>
</div><!--/.body-->
2013-09-18 14:45:58 -04:00
</div><!--/.view-read-->