mirror of
https://github.com/discourse/discourse.git
synced 2025-05-24 01:57:15 +08:00
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:
@ -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() {
|
||||
|
Reference in New Issue
Block a user