mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2024-11-26 20:01:02 +00:00
added gitlab login
This commit is contained in:
parent
ca3d15bca2
commit
b209355ca5
5 changed files with 58 additions and 2 deletions
|
@ -26,6 +26,10 @@ app.config(['$routeProvider', '$locationProvider', '$httpProvider', function($ro
|
|||
controller: 'LoginController',
|
||||
title: 'Login',
|
||||
})
|
||||
.when('/gitlab', {
|
||||
templateUrl: '/views/login_gitlab.html',
|
||||
title: 'GitLab Login',
|
||||
})
|
||||
.when('/setup', {
|
||||
templateUrl: '/views/setup.html',
|
||||
controller: 'SetupController',
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -634,6 +634,31 @@ nav {
|
|||
margin-bottom:0px;
|
||||
}
|
||||
}
|
||||
form.pure-g {
|
||||
input[type="text"],
|
||||
input[type="password"] {
|
||||
.border_box();
|
||||
width:100%;
|
||||
padding:8px;
|
||||
font-size:14px;
|
||||
margin-bottom:15px;
|
||||
border: 1px solid #DDD;
|
||||
}
|
||||
input[type="submit"] {
|
||||
display:block;
|
||||
background:@c1;
|
||||
color:#fff;
|
||||
padding:14px 20px;
|
||||
font-size:15px;
|
||||
border-radius:5px;
|
||||
text-decoration:none;
|
||||
width:100%;
|
||||
border:none;
|
||||
&:hover {
|
||||
background:@c0;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#setuppage2 {
|
||||
|
|
|
@ -11,7 +11,10 @@ minor modifications to the style that only apply to this view
|
|||
<article id="loginpage">
|
||||
<div class="pure-g">
|
||||
<div class="pure-u-1" ng-if="state == 1 && remotes.length != 0" ng-repeat="remote in remotes">
|
||||
<a ng-href="/login/{{ remote.type }}" target="_self">
|
||||
<a ng-href="/login/{{ remote.type }}" target="_self" ng-if="remote.type != 'gitlab.com' ">
|
||||
<i class="fa {{ remote.type | remoteIcon }}"></i> {{ remote.type | remoteName }}
|
||||
</a>
|
||||
<a ng-href="/gitlab" ng-if="remote.type == 'gitlab.com' ">
|
||||
<i class="fa {{ remote.type | remoteIcon }}"></i> {{ remote.type | remoteName }}
|
||||
</a>
|
||||
</div>
|
||||
|
|
24
server/app/views/login_gitlab.html
Normal file
24
server/app/views/login_gitlab.html
Normal file
|
@ -0,0 +1,24 @@
|
|||
<!--
|
||||
minor modifications to the style that only apply to this view
|
||||
-->
|
||||
<style>
|
||||
#container { padding-top: 155px; }
|
||||
#header { height: 150px; }
|
||||
#header .user { display:none; }
|
||||
#header .brand { margin-top:55px ; }
|
||||
</style>
|
||||
|
||||
<article id="loginpage">
|
||||
<form class="pure-g" method="POST" action="/login/gitlab.com">
|
||||
<div class="pure-u-1">
|
||||
<input type="text" name="username" placeholder="Username" />
|
||||
</div>
|
||||
<div class="pure-u-1">
|
||||
<input type="password" name="password" placeholder="Password" />
|
||||
</div>
|
||||
|
||||
<div class="pure-u-1">
|
||||
<input type="submit" value="Gitlab Login" />
|
||||
</div>
|
||||
</form>
|
||||
</article>
|
Loading…
Reference in a new issue