Changeset 12516 for branches/HiveStatistics/sources/HeuristicLab.Services.WebApp.Statistics/3.3/WebApp/users
- Timestamp:
- 06/25/15 18:34:40 (10 years ago)
- Location:
- branches/HiveStatistics/sources
- Files:
-
- 3 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/HiveStatistics/sources
- Property svn:mergeinfo changed
/trunk/sources merged: 12470-12476,12478-12482,12485,12488,12490-12494,12496-12497,12504,12506-12507,12509,12511-12512,12514
- Property svn:mergeinfo changed
-
branches/HiveStatistics/sources/HeuristicLab.Services.WebApp.Statistics/3.3
-
Property
svn:global-ignores
set to
obj
-
Property
svn:ignore
set to
bin
-
Property
svn:global-ignores
set to
-
branches/HiveStatistics/sources/HeuristicLab.Services.WebApp.Statistics/3.3/WebApp/users/users.cshtml
r12477 r12516 17 17 18 18 <div class="default-view-container"> 19 19 <div class="row"> 20 <div class="col-lg-12"> 21 <div class="panel panel-default"> 22 <div class="panel-heading"> 23 <h3 class="panel-title">Users</h3> 24 </div> 25 <div class="panel-body"> 26 <table class="table table-hover table-condensed"> 27 <thead> 28 <tr> 29 <th>#</th> 30 <th>Username</th> 31 <th></th> 32 </tr> 33 </thead> 34 <tr ng-repeat="user in users"> 35 <td>{{$index + 1}}</td> 36 <td>{{user.Name}}</td> 37 <td> 38 <a ng-href="#/statistics/users/{{user.Id}}">Details</a> 39 </td> 40 </tr> 41 <tr ng-hide="users.length"> 42 <td colspan="4" class="text-center">No users found!</td> 43 </tr> 44 </table> 45 </div> 46 </div> 47 </div> 48 </div> 20 49 </div> 21 50 } -
branches/HiveStatistics/sources/HeuristicLab.Services.WebApp.Statistics/3.3/WebApp/users/usersCtrl.js
r12477 r12516 2 2 var module = appStatisticsPlugin.getAngularModule(); 3 3 module.controller('app.statistics.usersCtrl', 4 ['$scope', 'app.statistics.data.service', function($scope, statisticsService) { 5 4 ['$scope', '$interval', 'app.statistics.userService', function ($scope, $interval, userService) { 5 $scope.interval = defaultPageUpdateInterval; 6 7 var getUsers = function() { 8 userService.getUsers({}, function(users) { 9 users.splice(0, 1); 10 $scope.users = users; 11 }); 12 }; 13 14 $scope.updateInterval = $interval(getUsers, $scope.interval); 15 var cancelInterval = $scope.$on('$locationChangeSuccess', function () { 16 $interval.cancel($scope.updateInterval); 17 cancelInterval(); 18 }); 19 getUsers(); // init page 6 20 }] 7 21 );
Note: See TracChangeset
for help on using the changeset viewer.