browsebranch.html.php 1.2 KB

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. /**
  3. * The browsebranch view file of gitlab module of ZenTaoPMS.
  4. * @copyright Copyright 2009-2023 禅道软件(青岛)有限公司(ZenTao Software (Qingdao) Co., Ltd. www.zentao.net)
  5. * @license ZPL(https://zpl.pub/page/zplv12.html) or AGPL(https://www.gnu.org/licenses/agpl-3.0.en.html)
  6. * @author Yanyi Cao <caoyanyi@easycorp.ltd>
  7. * @package gitlab
  8. * @link https://www.zentao.net
  9. */
  10. namespace zin;
  11. detailHeader
  12. (
  13. common::hasPriv('instance', 'manage') ? to::suffix(btn
  14. (
  15. set::icon('plus'),
  16. set::url(createLink('gitlab', 'createBranch', "gitlabID={$gitlabID}&projectID={$projectID}")),
  17. set::type('primary'),
  18. $lang->gitlab->createBranch
  19. )) : null
  20. );
  21. $branchList = initTableData($gitlabBranchList, $config->gitlab->dtable->branch->fieldList, $this->gitlab);
  22. dtable
  23. (
  24. set::cols($config->gitlab->dtable->branch->fieldList),
  25. set::data($branchList),
  26. set::sortLink(createLink('gitlab', 'browseBranch', "gitlabID={$gitlabID}&projectID={$projectID}&orderBy={name}_{sortType}&recTotal={$pager->recTotal}&recPerPage={$pager->recPerPage}&pageID={$pager->pageID}")),
  27. set::orderBy($orderBy),
  28. set::footPager(usePager())
  29. );