diff --git a/public/app/core/components/EmptyListCTA/EmptyListCTA.tsx b/public/app/core/components/EmptyListCTA/EmptyListCTA.tsx index a5a78a63bf1..1583303dfa1 100644 --- a/public/app/core/components/EmptyListCTA/EmptyListCTA.tsx +++ b/public/app/core/components/EmptyListCTA/EmptyListCTA.tsx @@ -1,4 +1,4 @@ -import React, { Component } from 'react'; +import React, { Component } from 'react'; export interface IProps { model: any; @@ -17,7 +17,7 @@ class EmptyListCTA extends Component { proTipTarget } = this.props.model; return ( -
+
{title}
{buttonTitle}
diff --git a/public/app/features/dashboard/settings/settings.ts b/public/app/features/dashboard/settings/settings.ts index c013e9d4720..744fcc46ca2 100644 --- a/public/app/features/dashboard/settings/settings.ts +++ b/public/app/features/dashboard/settings/settings.ts @@ -11,7 +11,7 @@ export class SettingsCtrl { sections: any[] = [ {title: 'General', id: 'settings', icon: "fa fa-fw fa-sliders"}, {title: 'Annotations', id: 'annotations', icon: "fa fa-fw fa-comment-o"}, - {title: 'Templating', id: 'templating', icon: "fa fa-fw fa-dollar"}, + {title: 'Variables', id: 'templating', icon: "fa fa-fw fa-dollar"}, {title: 'Links', id: 'links', icon: "fa fa-fw fa-external-link"}, {title: 'Versions', id: 'versions', icon: "fa fa-fw fa-history"}, {title: 'View JSON', id: 'view_json', icon: "fa fa-fw fa-code"}, diff --git a/public/app/features/templating/partials/editor.html b/public/app/features/templating/partials/editor.html index 72f82f43a8f..9013a4642d8 100644 --- a/public/app/features/templating/partials/editor.html +++ b/public/app/features/templating/partials/editor.html @@ -1,64 +1,71 @@ -

Templating

+

Variables

+
- No template variables defined -

+
+
There are no template variables added yet
+ + + Add variable + +
+
+ What does variables do? +
+

Variables enables more interactive and dynamic dashboards. Instead of hard-coding things like server or sensor names + in your metric queries you can use variables in their place. Variables are shown as dropdown select boxes at the top of + the dashboard. These dropdowns make it easy to change the data being displayed in your dashboard. + + Checkout the + + Templating documentation + for more information. +

+
- - - - - - - - - - - - - - - - - - -
VariableDefinition
- - ${{variable.name}} - - - {{variable.query}} - - - Duplicate - - - - - -
-
+
+
+
+ New +
-
-
-
What does templating do?
-

Templating allows for more interactive and dynamic dashboards. Instead of hard-coding things like server, application - and sensor name in your metric queries you can use variables in their place. Variables are shown as dropdown select boxes at the top of - the dashboard. These dropdowns make it easy to change the data being displayed in your dashboard. -
-
+ + + + + + + + + + + + - Checkout the Templating documentation for more information. -

- - - -
-
-   New +
+ + + + + +
VariableDefinition
+ + ${{variable.name}} + + + {{variable.query}} + + + Duplicate + + + + + +

diff --git a/public/sass/components/_empty_list_cta.scss b/public/sass/components/_empty_list_cta.scss index a8c235d83db..844c8c87866 100644 --- a/public/sass/components/_empty_list_cta.scss +++ b/public/sass/components/_empty_list_cta.scss @@ -1,21 +1,23 @@ -.empty-list-cta { - background-color: $search-filter-box-bg; - text-align: center; +.empty-list-cta { + background-color: $search-filter-box-bg; + text-align: center; + padding: 2rem 2rem 1rem 2rem; + border-radius: $border-radius; } .empty-list-cta__title { - padding-bottom: 30px; - font-style: italic; + padding-bottom: 30px; + font-style: italic; } .empty-list-cta__button { - margin-bottom: 50px; + margin-bottom: 50px; } .empty-list-cta__pro-tip { - padding-bottom: 20px; + padding-bottom: 1rem; } .empty-list-cta__pro-tip-link { - margin-left: 5px; -} \ No newline at end of file + margin-left: 5px; +} diff --git a/public/sass/components/_infobox.scss b/public/sass/components/_infobox.scss index 0d3cbcd52b8..2a9c03cbdfa 100644 --- a/public/sass/components/_infobox.scss +++ b/public/sass/components/_infobox.scss @@ -1,13 +1,3 @@ -// .grafana-info-box::before { -// content: "\f05a"; -// font-family:'FontAwesome'; -// position: absolute; -// top: -13px; -// left: -8px; -// font-size: 20px; -// color: $text-color; -// } - .grafana-info-box { position: relative; background: $info-box-background; diff --git a/public/sass/components/_navbar.scss b/public/sass/components/_navbar.scss index 7cde09b1dac..15f27e81e93 100644 --- a/public/sass/components/_navbar.scss +++ b/public/sass/components/_navbar.scss @@ -2,9 +2,7 @@ .navbar { position: relative; padding-left: $side-menu-width; - // box-shadow: $navbarShadow; z-index: $zindex-navbar-fixed; - // background: $navbarBackground; height: $navbarHeight; padding-right: $spacer; display: flex;