From b0c5cc30654ce5bd432777eb0467afda6e09dbfb Mon Sep 17 00:00:00 2001 From: songchenxuan Date: Tue, 26 Mar 2024 16:35:03 +0800 Subject: [PATCH] * Add chart browse page. --- module/chart/ui/preview.html.php | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/module/chart/ui/preview.html.php b/module/chart/ui/preview.html.php index f985bcaf62..9e05014f0b 100644 --- a/module/chart/ui/preview.html.php +++ b/module/chart/ui/preview.html.php @@ -24,6 +24,25 @@ foreach($groups as $id => $name) featureBar(set::items($items)); +if($config->edition != 'open') +{ + toolbar + ( + hasPriv('chart', 'export') ? item(set(array + ( + 'text' => $lang->export, + 'icon' => 'export', + 'class' => 'ghost', + ))) : null, + hasPriv('chart', 'browse') ? item(set(array + ( + 'text' => $lang->chart->toDesign, + 'class' => 'primary', + 'url' => inlink('browse'), + ))) : null, + ); +} + $chart = zget($charts, 0, null); div