Skip to content

Commit 2f354ed

Browse files
committed
fix(getting started panel): some more work on this, grafana#6466
1 parent 2233938 commit 2f354ed

File tree

2 files changed

+42
-27
lines changed

2 files changed

+42
-27
lines changed

public/app/plugins/panel/gettingstarted/module.ts

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,34 @@ class GettingStartedPanelCtrl extends PanelCtrl {
2424
this.stepIndex = 0;
2525
this.steps = [];
2626

27+
if (!contextSrv.hasRole('Admin')) {
28+
this.steps.push({
29+
cta: 'Basic Concepts Guide',
30+
icon: 'fa fa-file-text-o',
31+
href: 'http://docs.grafana.org/guides/basic_concepts/',
32+
check: () => $q.when(false),
33+
cssClass: 'active',
34+
});
35+
36+
this.steps.push({
37+
cta: 'Getting Started Guide',
38+
icon: 'fa fa-file-text-o',
39+
href: 'http://docs.grafana.org/guides/getting_started/',
40+
check: () => $q.when(false),
41+
cssClass: 'active',
42+
});
43+
44+
this.steps.push({
45+
cta: 'Building a dashboard',
46+
icon: 'fa fa-film',
47+
href: 'http://docs.grafana.org/tutorials/screencasts/',
48+
check: () => $q.when(false),
49+
cssClass: 'active',
50+
});
51+
52+
return;
53+
}
54+
2755
this.steps.push({
2856
title: 'Install Grafana',
2957
icon: 'icon-gf icon-gf-check',

public/sass/components/_panel_gettingstarted.scss

Lines changed: 14 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -14,32 +14,6 @@ $path-height: 4px !default;
1414
$path-position: $marker-size-half - ($path-height / 2);
1515

1616

17-
.gettingstarted-blurb-copy {
18-
margin-bottom: $spacer/2;
19-
text-align: center;
20-
}
21-
22-
.gettingstarted-blurb {
23-
@extend .gettingstarted-blurb-copy;
24-
color: $text-color;
25-
display: block;
26-
27-
&:hover{
28-
text-decoration: underline;
29-
}
30-
}
31-
32-
.gettingstarted-blurb-success {
33-
@extend .gettingstarted-blurb-copy;
34-
color: $text-color-weak;
35-
}
36-
37-
.gettingstarted-blurb-upcoming {
38-
@extend .gettingstarted-blurb-copy;
39-
color: $text-color-weak;
40-
}
41-
42-
4317
.dashlist-cta-close-btn {
4418
color: $text-color-weak;
4519
float: right;
@@ -105,6 +79,19 @@ $path-position: $marker-size-half - ($path-height / 2);
10579
.progress-title {
10680
font-weight: 400;
10781
}
82+
.progress-text {
83+
display: none;
84+
}
85+
86+
.progress-marker {
87+
.icon-gf {
88+
color: $brand-primary;
89+
-webkit-text-fill-color: transparent;
90+
background: $brand-gradient;
91+
-webkit-background-clip: text;
92+
text-decoration:none;
93+
}
94+
}
10895
}
10996

11097
&.completed {
@@ -145,6 +132,7 @@ $path-position: $marker-size-half - ($path-height / 2);
145132
background-color: $panel-bg;
146133
margin-left: auto;
147134
margin-right: auto;
135+
margin-bottom: $spacer;
148136
color: $text-color-weak;
149137
font-size: 35px;
150138
vertical-align: sub;
@@ -153,7 +141,6 @@ $path-position: $marker-size-half - ($path-height / 2);
153141
// Progress text
154142
.progress-text {
155143
display: block;
156-
padding: $spacer;
157144
overflow: hidden;
158145
text-overflow: ellipsis;
159146
}

0 commit comments

Comments
 (0)