Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nexpie-grafana-theme
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Registry
Registry
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kornkitt Poolsup
nexpie-grafana-theme
Commits
b469904c
Commit
b469904c
authored
Feb 10, 2016
by
bergquist
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix(login): hide divider if no oath
closes #3980
parent
509b37eb
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
8 additions
and
7 deletions
+8
-7
public/app/core/controllers/login_ctrl.js
+1
-2
public/app/partials/login.html
+4
-4
public/less/login.less
+3
-1
No files found.
public/app/core/controllers/login_ctrl.js
View file @
b469904c
...
@@ -17,6 +17,7 @@ function (angular, coreModule, config) {
...
@@ -17,6 +17,7 @@ function (angular, coreModule, config) {
$scope
.
googleAuthEnabled
=
config
.
googleAuthEnabled
;
$scope
.
googleAuthEnabled
=
config
.
googleAuthEnabled
;
$scope
.
githubAuthEnabled
=
config
.
githubAuthEnabled
;
$scope
.
githubAuthEnabled
=
config
.
githubAuthEnabled
;
$scope
.
oauthEnabled
=
config
.
githubAuthEnabled
||
config
.
googleAuthEnabled
;
$scope
.
disableUserSignUp
=
config
.
disableUserSignUp
;
$scope
.
disableUserSignUp
=
config
.
disableUserSignUp
;
$scope
.
loginHint
=
config
.
loginHint
;
$scope
.
loginHint
=
config
.
loginHint
;
...
@@ -84,7 +85,5 @@ function (angular, coreModule, config) {
...
@@ -84,7 +85,5 @@ function (angular, coreModule, config) {
};
};
$scope
.
init
();
$scope
.
init
();
});
});
});
});
public/app/partials/login.html
View file @
b469904c
...
@@ -63,9 +63,7 @@
...
@@ -63,9 +63,7 @@
</div>
</div>
</form>
</form>
<div
class=
"clearfix"
></div>
<div
class=
"text-center login-divider"
ng-if=
"oauthEnabled"
>
<div
class=
"text-center login-divider"
>
<div
class=
"login-divider-line"
>
<div
class=
"login-divider-line"
>
<span
class=
"login-divider-text"
>
<span
class=
"login-divider-text"
>
Or login with
Or login with
...
@@ -75,7 +73,7 @@
...
@@ -75,7 +73,7 @@
<div
class=
"clearfix"
></div>
<div
class=
"clearfix"
></div>
<div
class=
"login-oauth text-center"
>
<div
class=
"login-oauth text-center"
ng-if=
"oauthEnabled"
>
<a
class=
"btn btn-large btn-google"
href=
"login/google"
target=
"_self"
ng-if=
"googleAuthEnabled"
>
<a
class=
"btn btn-large btn-google"
href=
"login/google"
target=
"_self"
ng-if=
"googleAuthEnabled"
>
<i
class=
"fa fa-google"
></i>
<i
class=
"fa fa-google"
></i>
with Google
with Google
...
@@ -86,6 +84,8 @@
...
@@ -86,6 +84,8 @@
</a>
</a>
</div>
</div>
<div
class=
"clearfix"
></div>
<div
class=
"text-center password-recovery"
>
<div
class=
"text-center password-recovery"
>
<div
class=
"text-center"
>
<div
class=
"text-center"
>
<a
href=
"user/password/send-reset-email"
>
<a
href=
"user/password/send-reset-email"
>
...
...
public/less/login.less
View file @
b469904c
...
@@ -88,6 +88,8 @@
...
@@ -88,6 +88,8 @@
}
}
.login-oauth {
.login-oauth {
margin-bottom: 15px;
.btn {
.btn {
margin: 5px;
margin: 5px;
}
}
...
@@ -104,7 +106,7 @@
...
@@ -104,7 +106,7 @@
.password-recovery {
.password-recovery {
background: @grafanaTargetBackground;
background: @grafanaTargetBackground;
margin-top:
3
0px;
margin-top:
1
0px;
padding: 10px;
padding: 10px;
a {
a {
color: @grayLight;
color: @grayLight;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment