File tree Expand file tree Collapse file tree 2 files changed +42
-27
lines changed
app/plugins/panel/gettingstarted Expand file tree Collapse file tree 2 files changed +42
-27
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,34 @@ class GettingStartedPanelCtrl extends PanelCtrl {
24
24
this . stepIndex = 0 ;
25
25
this . steps = [ ] ;
26
26
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
+
27
55
this . steps . push ( {
28
56
title : 'Install Grafana' ,
29
57
icon : 'icon-gf icon-gf-check' ,
Original file line number Diff line number Diff line change @@ -14,32 +14,6 @@ $path-height: 4px !default;
14
14
$path-position : $marker-size-half - ($path-height / 2 );
15
15
16
16
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
-
43
17
.dashlist-cta-close-btn {
44
18
color : $text-color-weak ;
45
19
float : right ;
@@ -105,6 +79,19 @@ $path-position: $marker-size-half - ($path-height / 2);
105
79
.progress-title {
106
80
font-weight : 400 ;
107
81
}
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
+ }
108
95
}
109
96
110
97
& .completed {
@@ -145,6 +132,7 @@ $path-position: $marker-size-half - ($path-height / 2);
145
132
background-color : $panel-bg ;
146
133
margin-left : auto ;
147
134
margin-right : auto ;
135
+ margin-bottom : $spacer ;
148
136
color : $text-color-weak ;
149
137
font-size : 35px ;
150
138
vertical-align : sub ;
@@ -153,7 +141,6 @@ $path-position: $marker-size-half - ($path-height / 2);
153
141
// Progress text
154
142
.progress-text {
155
143
display : block ;
156
- padding : $spacer ;
157
144
overflow : hidden ;
158
145
text-overflow : ellipsis ;
159
146
}
You can’t perform that action at this time.
0 commit comments