2013-11-08 17:31:20 -05:00
|
|
|
<div class="view-mail-list" ng-controller="MailListCtrl">
|
2013-10-27 06:32:12 -04:00
|
|
|
<!-- nav controll and section headline -->
|
2013-11-08 15:35:30 -05:00
|
|
|
<header data-icon="" ng-click="state.nav.toggle(true); $event.stopPropagation()">
|
2013-11-08 17:31:20 -05:00
|
|
|
<h2>{{state.nav.currentFolder.type}}</h2>
|
2013-10-27 06:32:12 -04:00
|
|
|
</header>
|
2013-09-18 12:47:18 -04:00
|
|
|
|
2013-12-06 03:55:44 -05:00
|
|
|
<div class="search">
|
2013-12-06 11:30:49 -05:00
|
|
|
<input class="input-text input-search" type="search" results="5" ng-model="searchText" placeholder=" Filter..." focus-me="state.mailList.searching">
|
2013-12-06 03:55:44 -05:00
|
|
|
</div>
|
|
|
|
|
2014-02-28 07:45:43 -05:00
|
|
|
<div class="list-wrapper" ng-iscroll="filteredMessages.length">
|
2013-10-27 06:32:12 -04:00
|
|
|
<ul class="mail-list">
|
2014-03-07 16:12:16 -05:00
|
|
|
<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 (filteredMessages = (state.nav.currentFolder.messages | filter:searchText | orderBy:'uid':true | limitTo:100))">
|
2013-10-27 06:32:12 -04:00
|
|
|
<h3>{{email.from[0].name || email.from[0].address}}</h3>
|
2014-02-20 13:20:24 -05:00
|
|
|
<div class="encrypted" data-icon="{{email.encrypted ? '' : ''}}"></div>
|
2013-10-27 06:32:12 -04:00
|
|
|
<div class="head">
|
2014-01-16 05:36:30 -05:00
|
|
|
<div class="flag" data-icon="{{(!email.unread && email.answered) ? '' : ''}}" ng-click="toggleUnread(email); $event.stopPropagation()"></div>
|
2013-10-27 06:32:12 -04:00
|
|
|
<p class="subject">{{email.subject || 'No subject'}}</p>
|
|
|
|
<time>{{email.sentDate | date:'mediumDate'}}</time>
|
|
|
|
</div>
|
|
|
|
<p class="body">{{email.body}}</p>
|
|
|
|
</li>
|
|
|
|
</ul><!--/.mail-list-->
|
|
|
|
</div>
|
2013-09-27 11:48:21 -04:00
|
|
|
|
2013-12-03 13:21:50 -05:00
|
|
|
<footer ng-class="{syncing: account.busy}" ng-click="synchronize()">
|
2013-11-06 09:15:36 -05:00
|
|
|
<span class="spinner"></span>
|
2013-12-09 13:21:52 -05:00
|
|
|
<span class="text" ng-switch="account.online">
|
|
|
|
<span ng-switch-when="false">
|
|
|
|
<span class="offline" data-icon=""></span>
|
|
|
|
</span>
|
|
|
|
{{lastUpdateLbl}} {{lastUpdate | date:'shortTime'}}
|
|
|
|
</span>
|
2013-10-27 06:32:12 -04:00
|
|
|
</footer>
|
|
|
|
</div><!--/.view-mail-list-->
|