nav.html.php 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. <?php
  2. /**
  3. * The nav view file of deploy module of ZenTaoPMS.
  4. * @copyright Copyright 2009-2024 禅道软件(青岛)有限公司(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 deploy
  8. * @link https://www.zentao.net
  9. */
  10. namespace zin;
  11. detailHeader
  12. (
  13. to::title
  14. (
  15. entityLabel
  16. (
  17. set::entityID($deploy->id),
  18. set::level(1),
  19. set::text($deploy->name)
  20. )
  21. )
  22. );
  23. $headers = null;
  24. if(!isInModal())
  25. {
  26. $navs = array();
  27. foreach($config->deploy->view->navs as $nav)
  28. {
  29. if(!hasPriv('deploy', $nav)) continue;
  30. $navs[] = li
  31. (
  32. setClass('nav-item'),
  33. a
  34. (
  35. $lang->deploy->$nav,
  36. set::href(inLink($nav, "deployID={$deploy->id}")),
  37. set('data-app', $app->tab),
  38. $app->rawMethod == $nav ? setClass('active') : null
  39. )
  40. );
  41. }
  42. $headers = nav
  43. (
  44. setClass('flex-auto'),
  45. $navs
  46. );
  47. }