mirror of
https://github.com/moparisthebest/mail
synced 2024-11-26 02:42:17 -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.folder = this.options.folder;
|
||||||
params.id = encodeURIComponent(params.id);
|
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));
|
$(this.el).html(this.template(params));
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
@ -2,5 +2,5 @@
|
|||||||
<h3><%- from %></h3>
|
<h3><%- from %></h3>
|
||||||
<p><strong><%- subject %></strong></p>
|
<p><strong><%- subject %></strong></p>
|
||||||
<!-- <p><%- body %></p> -->
|
<!-- <p><%- body %></p> -->
|
||||||
<p class="ui-li-aside"><strong><%- sentDate %></strong></p>
|
<p class="ui-li-aside"><strong><%- displayDate %></strong></p>
|
||||||
</a>
|
</a>
|
Loading…
Reference in New Issue
Block a user