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

35 lines
1.9 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>
2014-02-28 07:45:43 -05:00
<div class="list-wrapper" ng-iscroll="filteredMessages.length">
<ul class="mail-list">
<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))">
<h3>{{email.from[0].name || email.from[0].address}}</h3>
<div class="encrypted" data-icon="{{email.encrypted ? '&#xe009;' : ''}}"></div>
<div class="head">
<div class="flag" data-icon="{{(!email.unread && email.answered) ? '&#xe002;' : ''}}" ng-click="toggleUnread(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-->