mirror of
https://github.com/harness/drone.git
synced 2025-05-09 04:42:08 +08:00
added gitlab login
This commit is contained in:
parent
ca3d15bca2
commit
b209355ca5
@ -26,6 +26,10 @@ app.config(['$routeProvider', '$locationProvider', '$httpProvider', function($ro
|
|||||||
controller: 'LoginController',
|
controller: 'LoginController',
|
||||||
title: 'Login',
|
title: 'Login',
|
||||||
})
|
})
|
||||||
|
.when('/gitlab', {
|
||||||
|
templateUrl: '/views/login_gitlab.html',
|
||||||
|
title: 'GitLab Login',
|
||||||
|
})
|
||||||
.when('/setup', {
|
.when('/setup', {
|
||||||
templateUrl: '/views/setup.html',
|
templateUrl: '/views/setup.html',
|
||||||
controller: 'SetupController',
|
controller: 'SetupController',
|
||||||
|
File diff suppressed because one or more lines are too long
@ -634,6 +634,31 @@ nav {
|
|||||||
margin-bottom:0px;
|
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 {
|
#setuppage2 {
|
||||||
|
@ -11,7 +11,10 @@ minor modifications to the style that only apply to this view
|
|||||||
<article id="loginpage">
|
<article id="loginpage">
|
||||||
<div class="pure-g">
|
<div class="pure-g">
|
||||||
<div class="pure-u-1" ng-if="state == 1 && remotes.length != 0" ng-repeat="remote in remotes">
|
<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 }}
|
<i class="fa {{ remote.type | remoteIcon }}"></i> {{ remote.type | remoteName }}
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</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 New Issue
Block a user