2013-09-18 14:45:58 -04:00
< div class = "controls" >
< button class = "btn-icon" >  < / button >
2013-10-12 13:39:09 -04:00
< button ng-click = "write(selected)" class = "btn-icon" >  < / button >
2013-09-18 14:45:58 -04:00
< button ng-click = "write()" class = "btn-icon" >  < / 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 >
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 -->