Compare commits
2 Commits
7c900c46d4
...
970258d00e
Author | SHA1 | Date | |
---|---|---|---|
970258d00e | |||
75c7dd95a0 |
@ -48,14 +48,20 @@
|
|||||||
this.draw().empty()
|
this.draw().empty()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
const list = $('<div></div>').addClass('ui list')
|
const list = $('<div></div>').addClass('ui selection divided list')
|
||||||
this.mailboxes.forEach(mb => {
|
this.mailboxes.forEach(mb => {
|
||||||
let count = ''
|
let count = ''
|
||||||
if (typeof mb.last_checked !== 'undefined') {
|
if (typeof mb.last_checked !== 'undefined') {
|
||||||
count = ' (' + mb.last_checked.count + ')'
|
count = ' (<i class="envelope outline icon"></i>' + mb.last_checked.count + ')'
|
||||||
}
|
}
|
||||||
list.append(
|
list.append(
|
||||||
$('<a></a>').addClass('item').attr('href', '{{$urls->base}}/emails/mailbox/' + mb.id).html(mb.name + count)
|
$('<div></div>').addClass('item').append(
|
||||||
|
$('<i></i>').addClass('inbox icon')
|
||||||
|
).append(
|
||||||
|
$('<div></div>').addClass('content').append(
|
||||||
|
$('<a></a>').addClass('header').attr('href', '{{$urls->base}}/emails/mailbox/' + mb.id).html(mb.name).append(count)
|
||||||
|
)
|
||||||
|
)
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
parent.append(list)
|
parent.append(list)
|
||||||
|
Reference in New Issue
Block a user