7bfaac80a7
/partial routes on server. code cleanup & reorganization, remove a lot of return statements (coffeescript compiled)
15 lines
346 B
JavaScript
15 lines
346 B
JavaScript
'use strict';
|
|
|
|
habitrpg.controller('StatsCtrl',
|
|
['$scope', 'User',
|
|
function($scope, User) {
|
|
$scope.refreshing = function () {
|
|
User.settings.fetching ? "spin" : ""
|
|
};
|
|
$scope.queueLength = function () {
|
|
User.settings.sync.queue.length || User.settings.sync.sent.length
|
|
};
|
|
$scope.stats = User.user.stats;
|
|
}
|
|
]);
|