removed sugar.js, port functionality to moment and underscore.js

bring in latest ace from local so we don't mess up with https
This commit is contained in:
Sam
2013-06-11 06:48:50 +10:00
parent eed5875505
commit fa8a84f20c
211 changed files with 1773 additions and 8914 deletions

View File

@ -76,9 +76,9 @@ Discourse.AdminUser = Discourse.User.extend({
}).property('admin', 'moderator'),
banDuration: (function() {
var banned_at = Date.create(this.banned_at);
var banned_till = Date.create(this.banned_till);
return banned_at.short() + " - " + banned_till.short();
var banned_at = moment(this.banned_at);
var banned_till = moment(this.banned_till);
return banned_at.format('L') + " - " + banned_till.format('L');
}).property('banned_till', 'banned_at'),
ban: function() {