mirror of
https://github.com/moparisthebest/mail
synced 2024-11-17 06:35:20 -05:00
Merge branch 'master' of github.com:whiteout-io/mail-html5
This commit is contained in:
commit
7ebdf1bfab
@ -81,10 +81,10 @@ define(function(require) {
|
||||
};
|
||||
|
||||
/**
|
||||
* Mark an email as unread
|
||||
* Mark an email as unread or read, respectively
|
||||
*/
|
||||
$scope.markUnread = function(email) {
|
||||
email.unread = true;
|
||||
$scope.toggleUnread = function(email) {
|
||||
email.unread = !email.unread;
|
||||
$scope.synchronize();
|
||||
};
|
||||
|
||||
|
@ -13,7 +13,7 @@
|
||||
<li ng-class="{'mail-list-active': email === state.mailList.selected, 'mail-list-attachment': email.attachments !== undefined && email.attachments.length > 0, 'mail-list-unread': email.unread, 'mail-list-replied': !email.unread && email.answered}" ng-click="select(email)" ng-repeat="email in state.nav.currentFolder.messages | orderBy:'uid':true | filter:searchText">
|
||||
<h3>{{email.from[0].name || email.from[0].address}}</h3>
|
||||
<div class="head">
|
||||
<div class="flag" data-icon="{{(!email.unread && email.answered) ? '' : ''}}" ng-click="markUnread(email); $event.stopPropagation()"></div>
|
||||
<div class="flag" data-icon="{{(!email.unread && email.answered) ? '' : ''}}" ng-click="toggleUnread(email); $event.stopPropagation()"></div>
|
||||
<p class="subject">{{email.subject || 'No subject'}}</p>
|
||||
<time>{{email.sentDate | date:'mediumDate'}}</time>
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user