mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
ux(): minor fix to login page
This commit is contained in:
parent
4b08f3909d
commit
b673bc1386
@ -39,25 +39,27 @@
|
|||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
|
|
||||||
<div class="text-center login-divider" ng-if="oauthEnabled">
|
<div ng-if="loginMode">
|
||||||
<div class="login-divider-line">
|
<div class="text-center login-divider" ng-if="oauthEnabled">
|
||||||
<span class="login-divider-text">
|
<div class="login-divider-line">
|
||||||
Or login with
|
<span class="login-divider-text">
|
||||||
</span>
|
Or login with
|
||||||
|
</span>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="clearfix"></div>
|
<div class="clearfix"></div>
|
||||||
|
|
||||||
<div class="login-oauth text-center" ng-if="oauthEnabled">
|
<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
|
||||||
</a>
|
</a>
|
||||||
<a class="btn btn-large btn-github" href="login/github" target="_self" ng-if="githubAuthEnabled">
|
<a class="btn btn-large btn-github" href="login/github" target="_self" ng-if="githubAuthEnabled">
|
||||||
<i class="fa fa-github"></i>
|
<i class="fa fa-github"></i>
|
||||||
with Github
|
with Github
|
||||||
</a>
|
</a>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="clearfix"></div>
|
<div class="clearfix"></div>
|
||||||
|
@ -64,7 +64,7 @@ export function GraphiteDatasource(instanceSettings, $q, backendSrv, templateSrv
|
|||||||
this.annotationQuery = function(options) {
|
this.annotationQuery = function(options) {
|
||||||
// Graphite metric as annotation
|
// Graphite metric as annotation
|
||||||
if (options.annotation.target) {
|
if (options.annotation.target) {
|
||||||
var target = templateSrv.replace(options.annotation.target);
|
var target = templateSrv.replace(options.annotation.target, {}, 'glob');
|
||||||
var graphiteQuery = {
|
var graphiteQuery = {
|
||||||
rangeRaw: options.rangeRaw,
|
rangeRaw: options.rangeRaw,
|
||||||
targets: [{ target: target }],
|
targets: [{ target: target }],
|
||||||
@ -72,8 +72,7 @@ export function GraphiteDatasource(instanceSettings, $q, backendSrv, templateSrv
|
|||||||
maxDataPoints: 100
|
maxDataPoints: 100
|
||||||
};
|
};
|
||||||
|
|
||||||
return this.query(graphiteQuery)
|
return this.query(graphiteQuery).then(function(result) {
|
||||||
.then(function(result) {
|
|
||||||
var list = [];
|
var list = [];
|
||||||
|
|
||||||
for (var i = 0; i < result.data.length; i++) {
|
for (var i = 0; i < result.data.length; i++) {
|
||||||
|
@ -55,6 +55,10 @@
|
|||||||
color: $white;
|
color: $white;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&:focus {
|
||||||
|
outline: 0;
|
||||||
|
}
|
||||||
|
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
width: 170px;
|
width: 170px;
|
||||||
@ -178,7 +182,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
@include media-breakpoint-up(md) {
|
@include media-breakpoint-up(md) {
|
||||||
.login-box-logo {
|
.login-box-logo {
|
||||||
img {
|
img {
|
||||||
width: 125px;
|
width: 125px;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user