logs.html.php 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <?php
  2. /**
  3. * The logs view file of compile 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 Ke Zhao<zhaoke@easycorp.ltd>
  7. * @package compile
  8. * @link https://www.zentao.net
  9. */
  10. namespace zin;
  11. global $lang;
  12. if(!empty($repoID)) dropmenu(set::objectID($repoID), set::tab('repo'));
  13. detailHeader(
  14. to::prefix(''),
  15. to::title(span(setClass('font-semibold'), $lang->compile->logs)),
  16. to::suffix
  17. (
  18. div
  19. (
  20. $job->engine == 'gitlab' ? btn
  21. (
  22. set::id('refreshBtn'),
  23. set::className('mr-3 secondary'),
  24. set::icon('eye'),
  25. set::text($lang->compile->refresh),
  26. set::url(helper::createLink('ci', "checkCompileStatus", "compileID={$build->id}"))
  27. ) : '',
  28. backBtn
  29. (
  30. set::icon('back'),
  31. set::type('secondary'),
  32. $lang->goback
  33. )
  34. )
  35. )
  36. );
  37. detailBody
  38. (
  39. sectionList
  40. (
  41. section
  42. (
  43. set::content($logs),
  44. set::useHtml(true)
  45. )
  46. )
  47. );
  48. render();