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-11-13 08:10:43 -05:00
|
|
|
<div class="list-wrapper" ng-iscroll="emails">
|
2013-10-27 06:32:12 -04:00
|
|
|
<ul class="mail-list">
|
2013-11-08 17:31:20 -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.answered}" ng-click="select(email)" ng-repeat="email in emails">
|
2013-10-27 06:32:12 -04:00
|
|
|
<h3>{{email.from[0].name || email.from[0].address}}</h3>
|
|
|
|
<div class="head">
|
|
|
|
<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-11-06 09:15:36 -05:00
|
|
|
<footer ng-class="{syncing: lastUpdateLbl === 'Syncing ...'}" ng-click="synchronize()">
|
|
|
|
<span class="spinner"></span>
|
|
|
|
<span class="text">{{lastUpdateLbl}} {{lastUpdate | date:'shortTime'}}</span>
|
2013-10-27 06:32:12 -04:00
|
|
|
</footer>
|
|
|
|
</div><!--/.view-mail-list-->
|