mirror of
https://github.com/moparisthebest/mail
synced 2024-11-25 18:32:20 -05:00
made display of date prettiert in item list
This commit is contained in:
parent
b6f85f9719
commit
5abd9c1c31
@ -14,6 +14,10 @@ app.view.MessageListItemView = Backbone.View.extend({
|
||||
params.folder = this.options.folder;
|
||||
params.id = encodeURIComponent(params.id);
|
||||
|
||||
var util = new app.crypto.Util(window, null);
|
||||
var date = util.parseDate(params.sentDate);
|
||||
params.displayDate = date.getDate() + '.' + (date.getMonth() + 1) + '. ' + date.getHours() + ':' + date.getMinutes();
|
||||
|
||||
$(this.el).html(this.template(params));
|
||||
return this;
|
||||
}
|
||||
|
@ -2,5 +2,5 @@
|
||||
<h3><%- from %></h3>
|
||||
<p><strong><%- subject %></strong></p>
|
||||
<!-- <p><%- body %></p> -->
|
||||
<p class="ui-li-aside"><strong><%- sentDate %></strong></p>
|
||||
<p class="ui-li-aside"><strong><%- displayDate %></strong></p>
|
||||
</a>
|
Loading…
Reference in New Issue
Block a user