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 range_end: $scope.range_end
users_or_groups: $scope.users_or_groups users_or_groups: $scope.users_or_groups
format: 'json' format: 'json'
console.log($scope.users_or_groups)
$http.get($scope.statistics_path, params: params).success (results) -> $http.get($scope.statistics_path, params: params).success (results) ->
$scope.statistics = results $scope.statistics = results

View File

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

View File

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