From 56ae826efb3e39163d611bed1ac77233dbe6e050 Mon Sep 17 00:00:00 2001 From: Joffrey JAFFEUX Date: Thu, 26 Jul 2018 15:26:53 -0400 Subject: [PATCH] UI: improves no data notice in reports (#6187) --- .../admin/templates/components/admin-report.hbs | 1 + app/assets/stylesheets/common/admin/admin_report.scss | 9 +++++++++ 2 files changed, 10 insertions(+) diff --git a/app/assets/javascripts/admin/templates/components/admin-report.hbs b/app/assets/javascripts/admin/templates/components/admin-report.hbs index 2f0429854e5..6208c7796a0 100644 --- a/app/assets/javascripts/admin/templates/components/admin-report.hbs +++ b/app/assets/javascripts/admin/templates/components/admin-report.hbs @@ -73,6 +73,7 @@ {{/if}} {{else}}
+ {{d-icon "pie-chart"}} {{i18n 'admin.dashboard.reports.no_data'}}
{{/if}} diff --git a/app/assets/stylesheets/common/admin/admin_report.scss b/app/assets/stylesheets/common/admin/admin_report.scss index 1ced78a4e6d..cc98c8e14a4 100644 --- a/app/assets/stylesheets/common/admin/admin_report.scss +++ b/app/assets/stylesheets/common/admin/admin_report.scss @@ -2,6 +2,15 @@ .no-data-alert { width: 100%; align-self: flex-start; + text-align: center; + padding: 1em; + + .d-icon-pie-chart { + color: $primary-low-mid; + margin-bottom: 0.5em; + font-size: $font-up-5; + display: block; + } } .conditional-loading-section {