* Refactor detail page of gogs.

This commit is contained in:
zhaoke
2023-06-13 19:59:33 +08:00
parent 8b029c78fe
commit c07b3aa160
3 changed files with 37 additions and 4 deletions
+33
View File
@@ -0,0 +1,33 @@
<?php
declare(strict_types=1);
/**
* The activate view file of gogs module of ZenTaoPMS.
* @copyright Copyright 2009-2023 禅道软件(青岛)有限公司(ZenTao Software (Qingdao) Co., Ltd. www.zentao.net)
* @license ZPL(https://zpl.pub/page/zplv12.html) or AGPL(https://www.gnu.org/licenses/agpl-3.0.en.html)
* @author Ke Zhao<zhaoke@easycorp.ltd>
* @package gogs
* @link https://www.zentao.net
*/
namespace zin;
global $lang;
detailHeader
(
to::title(entityLabel(set(array('entityID' => $gogs->id, 'level' => 1, 'text' => $gogs->name)))),
);
detailBody
(
sectionList
(
section
(
set::title($lang->gogs->url),
set::content("<a href='{$gogs->url}' target='_blank'>{$gogs->url}</a>"),
set::useHtml(true)
),
),
history(),
);
render(isonlybody() ? 'modalDialog' : 'page');