1
0
mirror of https://github.com/moparisthebest/mail synced 2024-11-12 20:25:01 -05:00
mail/src/tpl/mail-list.html

34 lines
1.7 KiB
HTML
Raw Normal View History

2013-11-08 17:31:20 -05:00
<div class="view-mail-list" ng-controller="MailListCtrl">
<!-- nav controll and section headline -->
<header data-icon="&#xe004;" ng-click="state.nav.toggle(true); $event.stopPropagation()">
2013-11-08 17:31:20 -05:00
<h2>{{state.nav.currentFolder.type}}</h2>
</header>
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>
<div class="list-wrapper" ng-iscroll="state.nav.currentFolder.messages.length">
<ul class="mail-list">
2013-12-12 10:39:29 -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 state.nav.currentFolder.messages | orderBy:'uid':true | filter:searchText">
<h3>{{email.from[0].name || email.from[0].address}}</h3>
<div class="head">
2014-01-15 09:27:38 -05:00
<div class="flag" data-icon="{{(!email.unread && email.answered) ? '&#xe002;' : ''}}" ng-click="markUnread(email); $event.stopPropagation()"></div>
<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>
<footer ng-class="{syncing: account.busy}" ng-click="synchronize()">
2013-11-06 09:15:36 -05:00
<span class="spinner"></span>
<span class="text" ng-switch="account.online">
<span ng-switch-when="false">
<span class="offline" data-icon="&#xe011;"></span>
</span>
{{lastUpdateLbl}} {{lastUpdate | date:'shortTime'}}
</span>
</footer>
</div><!--/.view-mail-list-->