+ Finish task#114717, hide the repo path and add a visit icon.

This commit is contained in:
dingguodong
2024-04-02 15:39:22 +08:00
parent 7a0dfd6ec6
commit 77a4bbe393
2 changed files with 21 additions and 1 deletions
+5 -1
View File
@@ -45,7 +45,11 @@ $config->repo->dtable->fieldList['actions']['name'] = 'actions';
$config->repo->dtable->fieldList['actions']['title'] = $lang->actions;
$config->repo->dtable->fieldList['actions']['type'] = 'actions';
$config->repo->dtable->fieldList['actions']['width'] = '132';
$config->repo->dtable->fieldList['actions']['menu'] = array('execJob', 'reportView', 'edit', 'delete');
$config->repo->dtable->fieldList['actions']['menu'] = array('visit', 'execJob', 'reportView', 'edit', 'delete');
$config->repo->dtable->fieldList['actions']['list']['visit']['icon'] = 'menu-my';
$config->repo->dtable->fieldList['actions']['list']['visit']['hint'] = $lang->repo->visit;
$config->repo->dtable->fieldList['actions']['list']['visit']['target'] = '_blank';
$config->repo->dtable->fieldList['actions']['list']['edit']['icon'] = 'edit';
$config->repo->dtable->fieldList['actions']['list']['edit']['hint'] = $lang->repo->edit;
+16
View File
@@ -50,9 +50,25 @@ foreach($repoList as $repo)
$config->repo->dtable->fieldList['name']['link'] = $this->createLink('repo', 'browse', "repoID={id}&branchID=&objectID={$objectID}");
$config->repo->dtable->fieldList['actions']['list']['edit']['url'] = $this->createLink('repo', 'edit', "repoID={id}&objectID={$objectID}");
if(empty($config->repo->maintain->hideRepoPath))
{
unset($config->repo->dtable->fieldList['path']);
$config->repo->dtable->fieldList['product']['width'] = '0.2';
$config->repo->dtable->fieldList['scm']['width'] = '0.2';
$config->repo->dtable->fieldList['lastSubmit']['width'] = '0.2';
}
$repos = initTableData($repoList, $config->repo->dtable->fieldList, $this->repo);
$queryMenuLink = createLink('repo', 'maintain', "objectID=$objectID&orderBy=&recTotal={$pager->recTotal}&pageID={$pager->pageID}&type=bySearch&param={queryID}");
/* Process data which the function initTableData() not provided. */
foreach($repos as $repo)
{
/* Set the url and check status for visiting the repo. */
$repo->actions[0]['disabled'] = strpos($repo->path, 'http') === false;
$repo->actions[0]['url'] = $repo->path;
}
\zin\featureBar
(
set::current('all'),