view.html.php 916 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. /**
  3. * The 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 Zeng Gang<zengggang@easycorp.ltd>
  7. * @package gitlab
  8. * @link https://www.zentao.net
  9. */
  10. namespace zin;
  11. global $lang;
  12. detailHeader
  13. (
  14. isAjaxRequest('modal') ? to::prefix() : '',
  15. to::title(
  16. entityLabel(
  17. set(array('entityID' => $gitlab->id, 'level' => 1, 'text' => $gitlab->name))
  18. )
  19. )
  20. );
  21. detailBody
  22. (
  23. sectionList
  24. (
  25. section
  26. (
  27. set::title($lang->gitlab->url),
  28. set::content("<a href='{$gitlab->url}' target='_blank'>{$gitlab->url}</a>"),
  29. set::useHtml(true)
  30. )
  31. ),
  32. history()
  33. );
  34. render();