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/PagePerformance
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/PagePerformance')
-rw-r--r--plugins/PagePerformance/Categories/PerformanceSubcategory.php6
-rw-r--r--plugins/PagePerformance/lang/en.json4
2 files changed, 9 insertions, 1 deletions
diff --git a/plugins/PagePerformance/Categories/PerformanceSubcategory.php b/plugins/PagePerformance/Categories/PerformanceSubcategory.php
index e8f21cd27e..9644ed68b0 100644
--- a/plugins/PagePerformance/Categories/PerformanceSubcategory.php
+++ b/plugins/PagePerformance/Categories/PerformanceSubcategory.php
@@ -9,6 +9,7 @@
namespace Piwik\Plugins\PagePerformance\Categories;
use Piwik\Category\Subcategory;
+use Piwik\Piwik;
class PerformanceSubcategory extends Subcategory
{
@@ -16,4 +17,9 @@ class PerformanceSubcategory extends Subcategory
protected $id = 'PagePerformance_Performance';
protected $order = 47;
+ public function getHelp()
+ {
+ return '<p>' . Piwik::translate('PagePerformance_PerformanceSubcategoryHelp1') . '</p>'
+ . '<p>' . Piwik::translate('PagePerformance_PerformanceSubcategoryHelp2') . '</p>';
+ }
}
diff --git a/plugins/PagePerformance/lang/en.json b/plugins/PagePerformance/lang/en.json
index 0292ab6c94..d93b48e78a 100644
--- a/plugins/PagePerformance/lang/en.json
+++ b/plugins/PagePerformance/lang/en.json
@@ -36,6 +36,8 @@
"HelpNote": "Some of those metrics might not always be available. You can find more information in our %1$sonline guide%2$s.",
"RowActionTitle": "Open page performance report",
"RowActionDescription": "Show page performance report for this row",
- "PagePerformanceTitle": "Page performance for page with %1$s \"%2$s\""
+ "PagePerformanceTitle": "Page performance for page with %1$s \"%2$s\"",
+ "PerformanceSubcategoryHelp1": "The Performance section can help you analyse how fast your website or app is performing on the whole and help discover whether you have specific pages that significantly deviate from your averages.",
+ "PerformanceSubcategoryHelp2": "You can also find reports showing exactly how long each page of your website takes to load and what is contributing to their loading time."
}
}