2013-09-18 14:45:58 -04:00
|
|
|
<div class="controls">
|
2013-11-08 17:31:20 -05:00
|
|
|
<button ng-click="state.mailList.remove(state.mailList.selected)" class="btn-icon" title="Delete mail"></button>
|
|
|
|
<button ng-click="state.writer.write(state.mailList.selected)" class="btn-icon" title="Reply to"></button>
|
2013-11-08 15:55:08 -05:00
|
|
|
<button ng-click="state.writer.write()" 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-11-08 16:05:08 -05:00
|
|
|
<div class="view-read" ng-controller="ReadCtrl">
|
2013-09-18 14:45:58 -04:00
|
|
|
<div class="headers">
|
2013-11-08 17:31:20 -05:00
|
|
|
<p class="subject" ng-click="state.read.toggle(false)">{{state.mailList.selected.subject || 'No subject'}}</p>
|
|
|
|
<p class="date">{{state.mailList.selected.sentDate | date:'EEEE, MMM d, yyyy h:mm a'}}</p>
|
|
|
|
<p class="address">From: <span class="label" data-icon-append="">{{state.mailList.selected.from[0].name || state.mailList.selected.from[0].address}}</span></p>
|
|
|
|
<p class="address">To: <span class="label" data-icon-append="" ng-repeat="t in state.mailList.selected.to">{{t.address}} </span></p>
|
|
|
|
<div ng-switch="state.mailList.selected.cc !== undefined">
|
2013-09-18 14:45:58 -04:00
|
|
|
<p class="address" ng-switch-when="true">
|
2013-11-08 17:31:20 -05:00
|
|
|
CC: <span class="label" ng-repeat="t in state.mailList.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-11-14 07:11:18 -05:00
|
|
|
<div class="body">
|
2013-11-18 13:53:31 -05:00
|
|
|
<!-- Render lines of a text-email in divs for easier styling -->
|
|
|
|
<div ng-repeat="line in state.mailList.selected.body.split('\n') track by $index" ng-class="{'empty-line': lineEmpty(line)}">
|
2013-11-18 11:44:59 -05:00
|
|
|
{{line}}<br>
|
2013-11-18 13:53:31 -05:00
|
|
|
</div>
|
2013-10-05 07:50:24 -04:00
|
|
|
</div><!--/.body-->
|
2013-09-18 14:45:58 -04:00
|
|
|
</div><!--/.view-read-->
|