mirror of
https://github.com/moparisthebest/mail
synced 2025-02-19 20:31:48 -05:00
added attachment icon to message list
This commit is contained in:
parent
13b51bd926
commit
4bd757acde
@ -68,6 +68,12 @@
|
|||||||
@include read-bubble-grey;
|
@include read-bubble-grey;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.icon-attachment {
|
||||||
|
float: right;
|
||||||
|
margin-top: 1.9em;
|
||||||
|
margin-right: 0.5em;
|
||||||
|
}
|
||||||
|
|
||||||
li {
|
li {
|
||||||
background-color: white;
|
background-color: white;
|
||||||
margin: 8px 0;
|
margin: 8px 0;
|
||||||
|
@ -60,7 +60,7 @@ define(function(require) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function createDummyMails(callback) {
|
function createDummyMails(callback) {
|
||||||
var Email = function(unread) {
|
var Email = function(unread, attachments) {
|
||||||
this.uid = '1';
|
this.uid = '1';
|
||||||
this.from = [{
|
this.from = [{
|
||||||
name: 'Whiteout Support',
|
name: 'Whiteout Support',
|
||||||
@ -69,9 +69,7 @@ define(function(require) {
|
|||||||
this.to = [{
|
this.to = [{
|
||||||
address: 'max.musterman@gmail.com'
|
address: 'max.musterman@gmail.com'
|
||||||
}]; // list of receivers
|
}]; // list of receivers
|
||||||
this.cc = [{
|
this.attachments = attachments;
|
||||||
address: 'hans.wurst@gmail.com'
|
|
||||||
}]; // list of receivers
|
|
||||||
this.unread = unread;
|
this.unread = unread;
|
||||||
this.displayDate = '23.08.13';
|
this.displayDate = '23.08.13';
|
||||||
this.longDisplayDate = 'Wednesday, 23.08.2013 19:23';
|
this.longDisplayDate = 'Wednesday, 23.08.2013 19:23';
|
||||||
@ -82,7 +80,7 @@ define(function(require) {
|
|||||||
"Best regards\nYour whiteout team"; // plaintext body
|
"Best regards\nYour whiteout team"; // plaintext body
|
||||||
};
|
};
|
||||||
|
|
||||||
var dummys = [new Email(true), new Email(true), new Email(false), new Email(false), new Email(false), new Email(false)];
|
var dummys = [new Email(true, true), new Email(true), new Email(false, true), new Email(false), new Email(false), new Email(false)];
|
||||||
|
|
||||||
callback(dummys);
|
callback(dummys);
|
||||||
}
|
}
|
||||||
|
@ -13,6 +13,9 @@
|
|||||||
<ul>
|
<ul>
|
||||||
<li ng-repeat="email in emails" ng-class="{selected: email === selected}" ng-click="select(email)">
|
<li ng-repeat="email in emails" ng-class="{selected: email === selected}" ng-click="select(email)">
|
||||||
<div ng-class="{unread: email.unread, read: !email.unread}"></div>
|
<div ng-class="{unread: email.unread, read: !email.unread}"></div>
|
||||||
|
<div ng-switch="email.attachments !== undefined">
|
||||||
|
<div ng-switch-when="true" class="icon-attachment"></div>
|
||||||
|
</div>
|
||||||
<p class="from">{{email.from[0].name}}</p>
|
<p class="from">{{email.from[0].name}}</p>
|
||||||
<p class="subject-line">
|
<p class="subject-line">
|
||||||
<span class="subject">{{email.subject}}</span>
|
<span class="subject">{{email.subject}}</span>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user