m.steps.html.php 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?php include $app->getModuleRoot() . 'common/view/m.header.html.php';?>
  2. <section id='page' class='section list-with-actions list-with-pager'>
  3. <div class='heading gray'>
  4. <div class='title'>
  5. <span class='prefix'><strong><?php echo $deploy->id?></strong></span>
  6. <strong><?php echo $deploy->name?></strong>
  7. </div>
  8. <nav class='nav'><a href="javascript:history.go(-1);" class='btn primary'><?php echo $lang->goback;?></a></nav>
  9. </div>
  10. <div class='box'>
  11. <?php foreach($lang->deploy->stageList as $stage => $name):?>
  12. <table class="table bordered">
  13. <thead>
  14. <tr>
  15. <th><?php echo $name;?></th>
  16. <th class="w-120px"></th>
  17. <th class="w-70px"></th>
  18. </tr>
  19. </thead>
  20. <tbody>
  21. <?php if($stage == 'testing' and !empty($stepGroups['cases'])):?>
  22. <?php foreach($stepGroups['cases'] as $case):?>
  23. <tr>
  24. <td><?php echo $case->title;?></td>
  25. <?php $result = zget($results, $case->id, '');?>
  26. <td><?php echo $result ? zget($users, $result->lastRunner) : '';?></td>
  27. <td><?php echo $result ? zget($lang->testcase->resultList, $result->caseResult) : '';?></td>
  28. </tr>
  29. <?php endforeach;?>
  30. <?php else:?>
  31. <?php if(!isset($stepGroups[$stage])) $stepGroups[$stage] = array();?>
  32. <?php foreach($stepGroups[$stage] as $step):?>
  33. <tr>
  34. <td><?php echo $step->title;?></td>
  35. <td><?php echo substr($step->begin, 11, 5) . ' ~ ' . substr($step->end, 11, 5);?></td>
  36. <td><?php echo zget($lang->deploy->statusList, $step->status);?></td>
  37. </tr>
  38. <?php endforeach;?>
  39. <?php endif;?>
  40. </tbody>
  41. </table>
  42. <?php endforeach;?>
  43. </div>
  44. </section>
  45. <?php include $app->getModuleRoot() . 'common/view/m.footer.html.php';?>