From 0f4a4406f3a4cb73a6aef2525791767a3e9c1c84 Mon Sep 17 00:00:00 2001 From: wangjianhua Date: Wed, 13 Jul 2022 08:53:51 +0000 Subject: [PATCH 1/2] * Show channel app come from on app instance card UI. --- frontend/module/common/model.php | 5 +++-- frontend/module/instance/lang/zh-cn.php | 4 ++++ frontend/module/space/control.php | 1 + frontend/module/space/view/browsebycard.html.php | 3 ++- 4 files changed, 10 insertions(+), 3 deletions(-) diff --git a/frontend/module/common/model.php b/frontend/module/common/model.php index ebb1c825..46ba7005 100644 --- a/frontend/module/common/model.php +++ b/frontend/module/common/model.php @@ -1345,18 +1345,19 @@ public static function printProgressBar($percent, $color = '', $tip = '') * @param float $percent * @param string $color HEX value of color * @param string $tip + * @param string $tipPosition available values: left, right, top, bottom * @static * @access public * @return void */ - public static function printProgressPie($percent, $color = '', $tip = '') + public static function printProgressPie($percent, $color = '', $tip = '', $tipPosition = 'bottom') { if(empty($color)) $color = self::getColorByLevel($percent); $title = $tip ? $tip : $percent . '%'; echo << +
{$percent}%
EOT; diff --git a/frontend/module/instance/lang/zh-cn.php b/frontend/module/instance/lang/zh-cn.php index 159ff588..85d4f04a 100644 --- a/frontend/module/instance/lang/zh-cn.php +++ b/frontend/module/instance/lang/zh-cn.php @@ -38,6 +38,10 @@ $lang->instance->sourceList['cloud'] = '渠成公共市场'; $lang->instance->sourceList['local'] = '本地市场'; +$lang->instance->channelList = array(); +$lang->instance->channelList['test'] = '测试版'; +$lang->instance->channelList['stable'] = '稳定版'; + $lang->instance->statusList = array(); $lang->instance->statusList['installationFail'] = '安装失败'; $lang->instance->statusList['creating'] = '创建中'; diff --git a/frontend/module/space/control.php b/frontend/module/space/control.php index fb63ccfd..a8053b49 100644 --- a/frontend/module/space/control.php +++ b/frontend/module/space/control.php @@ -25,6 +25,7 @@ class space extends control */ public function browse($spaceID = null, $browseType = 'bycard', $recTotal = 0, $recPerPage = 20, $pageID = 1) { + $this->app->loadLang('instance'); $this->loadModel('instance'); $this->loadModel('store'); diff --git a/frontend/module/space/view/browsebycard.html.php b/frontend/module/space/view/browsebycard.html.php index 9c9cf94c..3d6e177d 100644 --- a/frontend/module/space/view/browsebycard.html.php +++ b/frontend/module/space/view/browsebycard.html.php @@ -48,7 +48,8 @@