Fix statistics not showing user statistics in profile

This commit is contained in:
Wedge 2016-05-24 18:01:08 +03:00
parent 3ab3370f83
commit 691f84910a
3 changed files with 4 additions and 6 deletions

View File

@ -65,7 +65,7 @@ RosaABF.controller 'StatisticsController', ['$scope', '$http', '$timeout', ($sco
range_end: $scope.range_end
users_or_groups: $scope.users_or_groups
format: 'json'
console.log($scope.users_or_groups)
$http.get($scope.statistics_path, params: params).success (results) ->
$scope.statistics = results

View File

@ -54,7 +54,7 @@
|  
- if user
.form-group ng-init="users_or_groups = '#{user.uname}'"
.form-group ng-init="users_or_groups='#{user.uname}'"
- else
.form-group>
label.control-label>

View File

@ -57,11 +57,9 @@
div ng-show="tab == 'projects'"
= render 'projects', subject: @user
#manage-statistics.offset10[ ng-show = "tab == 'statistics'"
ng-controller = 'StatisticsController'
ng-cloak = true ]
rd-widget
rd-widget-header title=t('top_menu.statistics')
rd-widget-body
div ng-controller = 'StatisticsController'
= render 'statistics'