diff options
author | dizzy <diosmosis@users.noreply.github.com> | 2021-02-10 08:37:26 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-10 08:37:26 +0300 |
commit | bc1d57f6dc43e843d26cbb5e484539201f518cf9 (patch) | |
tree | 124d9ba0bb2f0a860fdaa9e39c059944dc94af4e /plugins/Dashboard | |
parent | f3782b96ad41d9ec52e759e7ca47bceba570bc35 (diff) |
Display help icons for categories/subcategories (#17062)
* show help icons in left and display help messages on click
* pointless commit
* more fixes for when to show icon persistent
* More docs & more fixes.
* some fixes, more styling changes + UI test
* remove line breaks
* fix link
* update SecurityInfo plugin to latest
* apply more review feedback
* Adding help text + tweak to notification title bar.
* fix issues after review and make exception clearer
* update submodules
* Update CustomVariables submodule.
* fixing tests
* fix test
Co-authored-by: sgiehl <stefan@matomo.org>
Diffstat (limited to 'plugins/Dashboard')
-rw-r--r-- | plugins/Dashboard/Categories/DashboardCategory.php | 6 | ||||
-rw-r--r-- | plugins/Dashboard/lang/en.json | 3 |
2 files changed, 8 insertions, 1 deletions
diff --git a/plugins/Dashboard/Categories/DashboardCategory.php b/plugins/Dashboard/Categories/DashboardCategory.php index 6a7ca4bcc5..746d4e2ca7 100644 --- a/plugins/Dashboard/Categories/DashboardCategory.php +++ b/plugins/Dashboard/Categories/DashboardCategory.php @@ -9,10 +9,16 @@ namespace Piwik\Plugins\Dashboard\Categories; use Piwik\Category\Category; +use Piwik\Piwik; class DashboardCategory extends Category { protected $id = 'Dashboard_Dashboard'; protected $order = 0; protected $icon = 'icon-reporting-dashboard'; + + public function getHelp() + { + return '<p>' . Piwik::translate('Dashboard_DashboardCategoryHelp', ['<strong>', '</strong>']) . '</p>'; + } } diff --git a/plugins/Dashboard/lang/en.json b/plugins/Dashboard/lang/en.json index 68bfd22c8e..522408467b 100644 --- a/plugins/Dashboard/lang/en.json +++ b/plugins/Dashboard/lang/en.json @@ -32,6 +32,7 @@ "SetAsDefaultWidgetsConfirmHelp": "This widgets selection and dashboard columns layout will be used when any user creates a new dashboard, or when \"%s\" feature is used.", "TopLinkTooltip": "View Web Analytics reports for %s.", "WidgetNotFound": "Widget not found", - "WidgetPreview": "Widget preview" + "WidgetPreview": "Widget preview", + "DashboardCategoryHelp": "This is a dashboard page. Dashboards are a collection of Matomo's widgets that you add yourself to suit your specific needs. Mix and match any of Matomo's widgets to get the data %1$s*you*%2$s need at a glance." } }
\ No newline at end of file |