From 7a94bed2509159c23d92a0aa87346230bb63978f Mon Sep 17 00:00:00 2001 From: Arik Fraimovich Date: Fri, 23 Dec 2016 22:58:15 +0200 Subject: [PATCH] Close #1453: more minimal notification of draft status for query/dashboard --- client/app/assets/css/redash.css | 2 +- client/app/pages/dashboards/dashboard.html | 95 +++++++++++----------- client/app/pages/queries/query.html | 4 +- 3 files changed, 51 insertions(+), 50 deletions(-) diff --git a/client/app/assets/css/redash.css b/client/app/assets/css/redash.css index a615cd1690..4c8d167628 100644 --- a/client/app/assets/css/redash.css +++ b/client/app/assets/css/redash.css @@ -312,7 +312,7 @@ to add those CSS styles here. */ } .rd-form-control { - width: 100%; + width: 90%; } pivot-table-renderer > table, grid-renderer > div, visualization-renderer > div { diff --git a/client/app/pages/dashboards/dashboard.html b/client/app/pages/dashboards/dashboard.html index 74598a8f17..53186137fa 100644 --- a/client/app/pages/dashboards/dashboard.html +++ b/client/app/pages/dashboards/dashboard.html @@ -1,56 +1,59 @@
- - -
- - - -
- - -
-
- - +
+
+

{{$ctrl.dashboard.name}} Draft

- +
+

+ +
+ + + +
+ + +
+ +

+
+
This dashboard is archived and won't appear in the dashboards list or search results.
-
- This dashboard is a draft. -
-
diff --git a/client/app/pages/queries/query.html b/client/app/pages/queries/query.html index 3242f658ca..88c2849774 100644 --- a/client/app/pages/queries/query.html +++ b/client/app/pages/queries/query.html @@ -21,6 +21,7 @@

+ Draft

@@ -77,9 +78,6 @@

This query is archived and can't be used in dashboards, and won't appear in search results.
-
- This query is a draft. -