ajaxgetcommitinfo.html.php 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <div id='commit-box' class='open'>
  2. <div class='dropdown-menu commit-show'>
  3. <div class='commit-title'><?php echo $lang->repo->commitInfo;?></div>
  4. <table>
  5. <tr class='empty'>
  6. <th><?php echo $lang->repo->revisionA;?></th>
  7. <td><?php echo html::a($this->repo->createLink('revision', "repoID=$repoID&objectID=0&revision={$commit->revision}"), substr($commit->revision, 0, 10));?></td>
  8. </tr>
  9. <tr class='empty'>
  10. <th><?php echo $lang->repo->committer;?></th>
  11. <td><?php echo $commit->committer;?></td>
  12. </tr>
  13. <tr class='empty'>
  14. <th><?php echo $lang->repo->comment;?></th>
  15. <td title='<?php echo $commit->comment;?>'><?php echo $commit->comment;?></td>
  16. </tr>
  17. <tr class='empty'>
  18. <th><?php echo $lang->repo->time;?></th>
  19. <td><?php echo $commit->time;?></td>
  20. </tr>
  21. <?php $storyIndex = $taskIndex = $bugIndex = 1;?>
  22. <?php $canViewStory = common::hasPriv('story', 'view');?>
  23. <?php $canViewTask = common::hasPriv('task', 'view');?>
  24. <?php $canViewBug = common::hasPriv('bug', 'view');?>
  25. <?php foreach($stories as $storyID => $storyTitle):?>
  26. <tr class='empty'>
  27. <th><?php echo $storyIndex == 1 ? $lang->repo->linkedStory : '';?></th>
  28. <td><?php echo $canViewStory ? html::a($this->createLink('story', 'view', "storyID=$storyID"), "#$storyID $storyTitle") : "#$storyID $storyTitle";?></td>
  29. </tr>
  30. <?php $storyIndex++;?>
  31. <?php endforeach;?>
  32. <?php foreach($tasks as $taskID => $taskName):?>
  33. <tr class='empty'>
  34. <th><?php echo $taskIndex == 1 ? $lang->repo->linkedTask : '';?></th>
  35. <td><?php echo $canViewTask ? html::a($this->createLink('task', 'view', "taskID=$taskID"), "#$taskID $taskName") : "#$taskID $taskName";?></td>
  36. </tr>
  37. <?php $taskIndex++;?>
  38. <?php endforeach;?>
  39. <?php foreach($bugs as $bugID => $bugTitle):?>
  40. <tr class='empty'>
  41. <th><?php echo $bugIndex == 1 ? $lang->repo->linkedBug : '';?></th>
  42. <td><?php echo $canViewBug ? html::a($this->createLink('bug', 'view', "bugID=$bugID"), "#$bugID $bugTitle") : "#$bugID $bugTitle";?></td>
  43. </tr>
  44. <?php $bugIndex++;?>
  45. <?php endforeach;?>
  46. </table>
  47. </div>
  48. </div>