* Add detailHeader of gitea.

This commit is contained in:
zhaoke
2023-06-21 19:01:46 +08:00
parent 6ed2586f9d
commit aaa66ee02b
2 changed files with 12 additions and 2 deletions
+2 -2
View File
@@ -144,8 +144,8 @@ class gitea extends control
$actionID = $this->pipeline->delete($giteaID, 'gitea');
if(!$actionID)
{
$response['result'] = 'fail';
$response['message'] = $this->lang->pipeline->delError;
$response['result'] = 'fail';
$response['callback'] = sprintf('zui.Modal.alert("%s");', $this->lang->pipeline->delError);
return $this->send($response);
}
+10
View File
@@ -11,6 +11,16 @@ declare(strict_types=1);
namespace zin;
global $lang;
detailHeader
(
isAjaxRequest('modal') ? to::prefix() : '',
to::title(
entityLabel(
set(array('entityID' => $gitea->id, 'level' => 1, 'text' => $gitea->name))
)
),
);
detailBody
(
sectionList