mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-10-23 05:43:44 +00:00
replaced Chrome browser with PhantomJS in karma tests
moved header to parent page, removed from templates
This commit is contained in:
@@ -1,5 +1,13 @@
|
||||
'use strict';
|
||||
|
||||
angular.module('app').controller("MainCtrl", function($scope, $http) {
|
||||
$scope.user = "soemthing"
|
||||
angular.module('app').controller("MainCtrl", function($scope, $http, users) {
|
||||
$scope.state=0
|
||||
$scope.user = users.getCurrent().success(function (user) {
|
||||
$scope.user = user;
|
||||
$scope.state = 1;
|
||||
})
|
||||
.error(function (error) {
|
||||
$scope.user = undefined;
|
||||
$scope.state = 1;
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user