From 0bd73085e41a37fb493040aa4b9b1aec7de78a8d Mon Sep 17 00:00:00 2001 From: liuruogu Date: Fri, 7 Jun 2024 16:21:43 +0800 Subject: [PATCH] * [story#57185,doing,0.1h,2.5h] Add metric time tips to singlestatistic block. --- module/block/ui/singlestatisticblock.html.php | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/module/block/ui/singlestatisticblock.html.php b/module/block/ui/singlestatisticblock.html.php index c6937ba902..1bd6f44940 100644 --- a/module/block/ui/singlestatisticblock.html.php +++ b/module/block/ui/singlestatisticblock.html.php @@ -35,6 +35,24 @@ foreach($product->monthCreated as $date => $count) panel ( + to::titleSuffix + ( + icon + ( + setClass('text-light text-sm cursor-pointer'), + toggle::tooltip + ( + array + ( + 'title' => sprintf($lang->block->tooltips['metricTime'], $metricTime), + 'placement' => 'bottom', + 'type' => 'white', + 'className' => 'text-dark border border-light leading-5' + ) + ), + 'help' + ) + ), setClass('singleproductstatistic-block ' . ($longBlock ? 'block-long' : 'block-sm')), set::headingClass('border-b'), set::title($block->title),