m.contribute.html.php 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <table class='table bordered text-center'>
  2. <tr>
  3. <th><?php echo $lang->block->createdTodos;?></th>
  4. <?php if($config->URAndSR):?>
  5. <th><?php echo $lang->block->createdRequirements;?></th>
  6. <?php endif;?>
  7. <th><?php echo $lang->block->createdStories;?></th>
  8. <th><?php echo $lang->block->finishedTasks;?></th>
  9. <th><?php echo $lang->block->createdBugs;?></th>
  10. <th><?php echo $lang->block->resolvedBugs;?></th>
  11. </tr>
  12. <tr>
  13. <td><?php echo empty($data['createdTodos']) ? 0 : html::a($this->createLink('my', 'todo', 'type=all'), (int)$data['createdTodos']);?></td>
  14. <?php if($config->URAndSR):?>
  15. <td><?php echo empty($data['createdRequirements']) ? 0 : (int)$data['createdRequirements'];?></td>
  16. <?php endif;?>
  17. <td><?php echo empty($data['createdStories']) ? 0 : (int)$data['createdStories'];?></td>
  18. <td><?php echo empty($data['finishedTasks']) ? 0 : html::a($this->createLink('my', 'contribute', 'mode=task&type=finishedBy'), (int)$data['finishedTasks']);?></td>
  19. <td><?php echo empty($data['createdBugs']) ? 0 : (int)$data['createdBugs'];?></td>
  20. <td><?php echo empty($data['resolvedBugs']) ? 0 : html::a($this->createLink('my', 'contribute', 'mode=bug&type=resolvedBy'), (int)$data['resolvedBugs']);?></td>
  21. </tr>
  22. <tr>
  23. <th><?php echo $lang->block->createdCases;?></th>
  24. <?php if(isset($config->maxVersion)):?>
  25. <th><?php echo $lang->block->createdRisks;?></th>
  26. <th><?php echo $lang->block->resolvedRisks;?></th>
  27. <th><?php echo $lang->block->createdIssues;?></th>
  28. <th><?php echo $lang->block->resolvedIssues;?></th>
  29. <?php endif;?>
  30. <th><?php echo $lang->block->createdDocs;?></th>
  31. </tr>
  32. <tr>
  33. <td><?php echo empty($data['createdCases']) ? 0 : (int)$data['createdCases'];?></td>
  34. <?php if(isset($config->maxVersion)):?>
  35. <td><?php echo empty($data['createdRisks']) ? 0 : html::a($this->createLink('my', 'contribute', 'mode=risk'), (int)$data['createdRisks']);?></td>
  36. <td><?php echo $data['resolvedRisks'];?></td>
  37. <td><?php echo empty($data['createdIssues']) ? 0 : html::a($this->createLink('my', 'contribute', 'mode=issue'), (int)$data['createdIssues']);?></td>
  38. <td><?php echo $data['resolvedIssues'];?></td>
  39. <?php endif;?>
  40. <td><?php echo $data['createdDocs'];?></td>
  41. </tr>
  42. </table>