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

28 lines
1.5 KiB
HTML
Raw Normal View History

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">&#xe005;</button>
<button ng-click="state.writer.write(state.mailList.selected)" class="btn-icon" title="Reply to">&#xe002;</button>
2013-11-08 15:55:08 -05:00
<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
<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="&#xe009;">{{state.mailList.selected.from[0].name || state.mailList.selected.from[0].address}}</span></p>
<p class="address">To: <span class="label" data-icon-append="&#xe009;" 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">
<!-- 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>
</div>
</div><!--/.body-->
2013-09-18 14:45:58 -04:00
</div><!--/.view-read-->