2014-12-17 20:58:20 +01:00
|
|
|
<?xml version='1.0' standalone='yes'?>
|
|
|
|
<container
|
2015-02-26 17:27:36 +01:00
|
|
|
xmlns="http://www.w3.org/1999/xhtml"
|
2015-04-29 17:23:21 +02:00
|
|
|
xmlns:label="OGo:label">
|
|
|
|
<div class="view-list md-layout-fill" layout="column" flex="true" style="position: relative;">
|
|
|
|
<md-content id="messagesList">
|
2015-01-26 04:33:00 +01:00
|
|
|
<style>
|
|
|
|
.vs-repeat-repeated-element {
|
2015-02-04 15:46:58 +01:00
|
|
|
width: 100%;
|
2015-01-26 04:33:00 +01:00
|
|
|
}
|
|
|
|
</style>
|
2015-07-04 03:40:37 +02:00
|
|
|
<md-progress-linear ng-show="mailbox.$isLoading" md-mode="indeterminate"><!-- progress --></md-progress-linear>
|
2015-04-29 17:23:21 +02:00
|
|
|
<header class="sg-md-subheader sg-md-subheader--fixed">
|
2015-05-04 14:52:54 +02:00
|
|
|
<h2 class="sg-md-subhead-solo fg-sogoBlue-700">Messages</h2>
|
2015-02-03 22:03:36 +01:00
|
|
|
</header>
|
2015-02-26 16:58:17 +01:00
|
|
|
<md-list vs-repeat="72"
|
|
|
|
vs-scroll-parent="#messagesList">
|
2015-04-20 18:08:20 +02:00
|
|
|
<md-list-item
|
|
|
|
ng-repeat="currentMessage in mailbox.$messages track by currentMessage.id"
|
2015-05-08 18:06:52 +02:00
|
|
|
ng-class="{unread: !currentMessage.isread}"
|
|
|
|
ng-click="selectMessage(currentMessage)"
|
|
|
|
ui-sref="mail.account.mailbox.message({accountId: account.id, mailboxId: (mailbox.path | encodeUri), messageId: currentMessage.uid})"
|
|
|
|
ui-sref-active="sg-active">
|
2015-05-09 20:37:40 +02:00
|
|
|
<div class="sg-selected-avatar" ng-show="currentMessage.selected"
|
|
|
|
ng-click="currentMessage.selected = !currentMessage.selected">
|
|
|
|
<!-- selected avatar -->
|
|
|
|
</div>
|
2015-05-08 18:06:52 +02:00
|
|
|
<sg-gravatar-image class="md-tile-left"
|
2015-05-09 20:37:40 +02:00
|
|
|
ng-show="!currentMessage.selected"
|
|
|
|
ng-click="currentMessage.selected = !currentMessage.selected"
|
2015-05-08 18:06:52 +02:00
|
|
|
email="{{currentMessage['from'][0].email}}"
|
2015-05-09 20:37:40 +02:00
|
|
|
size="48">
|
|
|
|
<!-- gravatar -->
|
2015-05-08 18:06:52 +02:00
|
|
|
</sg-gravatar-image>
|
|
|
|
<div class="sg-tile-content">
|
|
|
|
<span class="msg-date"
|
|
|
|
ng-bind-html="currentMessage.relativedate"><!-- date --></span>
|
|
|
|
<div class="sg-md-subhead-multi">{{currentMessage.$shortAddress('from')}}</div>
|
|
|
|
<div class="sg-md-body-multi">{{currentMessage.subject}}</div>
|
|
|
|
<i class="icon-ion-refresh"
|
|
|
|
ng-hide="mailbox.$loadMessage(currentMessage.uid)"><!-- loading --></i>
|
|
|
|
</div>
|
|
|
|
<div class="sg-tile-icons">
|
2015-07-04 03:40:37 +02:00
|
|
|
<md-icon ng-show="currentMessage.isflagged">star</md-icon>
|
|
|
|
<md-icon ng-show="currentMessage.isanswered">reply</md-icon>
|
|
|
|
<md-icon ng-show="currentMessage.isforwarded">forward</md-icon>
|
|
|
|
<md-icon ng-show="currentMessage.hasattachment">attach_file</md-icon>
|
2015-05-08 18:06:52 +02:00
|
|
|
</div>
|
2015-04-09 20:46:54 +02:00
|
|
|
</md-list-item>
|
2015-01-26 04:33:00 +01:00
|
|
|
</md-list>
|
|
|
|
</md-content>
|
2015-07-04 03:40:37 +02:00
|
|
|
<md-button class="md-fab md-fab-bottom-right md-accent"
|
2015-04-29 17:23:21 +02:00
|
|
|
label:aria-label="Write a new message"
|
|
|
|
ui-sref="mail.newMessage()">
|
2015-07-04 03:40:37 +02:00
|
|
|
<md-icon>add</md-icon>
|
2015-04-29 17:23:21 +02:00
|
|
|
</md-button>
|
|
|
|
</div>
|
|
|
|
|
2015-03-25 21:46:06 +01:00
|
|
|
<!-- This extra container is used to animate views transitions
|
|
|
|
double quotes in ng-animate is not a typo -->
|
2015-05-05 21:42:09 +02:00
|
|
|
<div ng-show="message" id="detailView" class="view-detail ng-cloak" layout="column" ui-view="message" ng-animate="'view'"><!-- message view --></div>
|
2015-03-19 08:40:46 +01:00
|
|
|
|
2014-12-17 20:58:20 +01:00
|
|
|
</container>
|