mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-12-26 10:20:29 +00:00
77daa5743f
moved header to parent page, removed from templates
13 lines
305 B
JavaScript
13 lines
305 B
JavaScript
'use strict';
|
|
|
|
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;
|
|
});
|
|
});
|