Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordizzy <diosmosis@users.noreply.github.com>2021-02-10 08:37:26 +0300
committerGitHub <noreply@github.com>2021-02-10 08:37:26 +0300
commitbc1d57f6dc43e843d26cbb5e484539201f518cf9 (patch)
tree124d9ba0bb2f0a860fdaa9e39c059944dc94af4e /plugins/Dashboard
parentf3782b96ad41d9ec52e759e7ca47bceba570bc35 (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.php6
-rw-r--r--plugins/Dashboard/lang/en.json3
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