mirror of
https://github.com/moparisthebest/mail
synced 2024-11-10 19:25:03 -05:00
56 lines
3.3 KiB
HTML
56 lines
3.3 KiB
HTML
<div class="controls">
|
|
<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>
|
|
<button ng-click="state.writer.write()" class="btn-icon" title="New mail"></button>
|
|
</div><!--/.controls-->
|
|
|
|
<div class="view-read" ng-controller="ReadCtrl">
|
|
<div class="headers">
|
|
<p class="subject" ng-click="state.read.toggle(false)">{{(state.mailList.selected.subject) ? state.mailList.selected.subject + ((!state.mailList.selected.encrypted) ? ' (not encrypted)' : '') : 'No subject'}}</p>
|
|
<p class="date">{{state.mailList.selected.sentDate | date:'EEEE, MMM d, yyyy h:mm a'}}</p>
|
|
<p class="address">
|
|
From: <span ng-repeat="u in state.mailList.selected.from" class="label" ng-class="{'label-primary': u.secure === false}" data-icon-append="{{(u.secure === false) ? '' : (u.secure === true) ? '' : ''}}" ng-mouseover="getFingerprint(u.address)" popover="#fingerprint-info">{{u.name || u.address}}</span>
|
|
</p>
|
|
<p class="address">
|
|
To: <span ng-repeat="u in state.mailList.selected.to" class="label" ng-class="{'label-primary': u.secure === false}" data-icon-append="{{(u.secure === false) ? '' : (u.secure === true) ? '' : ''}}" ng-mouseover="getFingerprint(u.address)" popover="#fingerprint-info">{{u.name || u.address}}</span>
|
|
</p>
|
|
<div ng-switch="state.mailList.selected.cc !== undefined">
|
|
<p class="address" ng-switch-when="true">
|
|
Cc: <span ng-repeat="u in state.mailList.selected.cc" class="label" ng-class="{'label-primary': u.secure === false}" data-icon-append="{{(u.secure === false) ? '' : (u.secure === true) ? '' : ''}}" ng-mouseover="getFingerprint(u.address)" popover="#fingerprint-info">{{u.name || u.address}}</span>
|
|
</p>
|
|
</div>
|
|
</div><!--/.headers-->
|
|
|
|
<div ng-switch="state.mailList.selected.attachments !== undefined && state.mailList.selected.attachments.length > 0">
|
|
<div ng-switch-when="true">
|
|
<div class="attachments">
|
|
<span class="attachment" ng-repeat="attachment in state.mailList.selected.attachments" ng-click="download(attachment)">
|
|
<span data-icon=""></span>
|
|
{{attachment.filename}}
|
|
</span><!--/.attachment-->
|
|
</div><!--/.attachments-->
|
|
</div>
|
|
<div ng-switch-default>
|
|
<div class="seperator-line"></div>
|
|
</div>
|
|
</div><!--/.ng-switch-->
|
|
|
|
|
|
<div class="body" ng-switch="state.mailList.selected.encrypted === true && state.mailList.selected.decrypted === false">
|
|
<div class="line">
|
|
<div ng-switch-when="true">This message contains encrypted content.</div>
|
|
<div ng-switch-default>
|
|
<!-- 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)}">{{line}}<br></div>
|
|
</div>
|
|
</div>
|
|
</div><!--/.body-->
|
|
|
|
<!-- popovers -->
|
|
<div id="fingerprint-info" class="popover right" ng-controller="PopoverCtrl">
|
|
<div class="arrow"></div>
|
|
<div class="popover-title"><b>PGP Fingerprint</b></div>
|
|
<div class="popover-content">{{fingerprint}}</div>
|
|
</div><!--/.popover-->
|
|
</div><!--/.view-read-->
|