2013-09-18 14:45:58 -04:00
< div class = "controls" >
2013-11-04 10:29:00 -05:00
< button ng-click = "remove(selected)" class = "btn-icon" title = "Delete mail" >  < / button >
< button ng-click = "openWriter(selected)" class = "btn-icon" title = "Reply to" >  < / button >
< button ng-click = "openWriter()" class = "btn-icon" title = "New mail" >  < / 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" >
2013-10-27 06:32:12 -04:00
< 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 >
2013-11-04 15:07:32 -05:00
< p class = "address" > From: < span class = "label" data-icon-append = "" > {{selected.from[0].name || selected.from[0].address}}< / span > < / p >
< p class = "address" > To: < span class = "label" data-icon-append = "" 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 >
2013-10-05 07:50:24 -04:00
< 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 -->
2013-09-14 12:20:25 -04:00
< 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 >
2013-09-14 12:20:25 -04:00
< / span >
< / p >
2013-10-05 07:50:24 -04:00
< / div > <!-- /.body -->
2013-09-18 14:45:58 -04:00
< / div > <!-- /.view - read -->