1
0
mirror of https://github.com/moparisthebest/mail synced 2024-11-22 08:52:15 -05:00

made display of date prettiert in item list

This commit is contained in:
Tankred Hase 2013-03-22 13:26:39 +01:00
parent b6f85f9719
commit 5abd9c1c31
2 changed files with 5 additions and 1 deletions

View File

@ -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;
}

View File

@ -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>