Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Milesones with no tickets show as 0% complete, now also on view miles…

…tone page.
  • Loading branch information...
commit eef5d82a48140d3d14c0c9e1b5eca62b80626eca 1 parent 8e51dab
Jack Polgar authored
Showing with 15 additions and 3 deletions.
  1. +15 −3 system/views/traq.templates/milestone.php
18 system/views/traq.templates/milestone.php
View
@@ -33,12 +33,24 @@
<td>
<table class="progress" cellspacing="0">
<tr>
- <?php if($milestone['tickets']['percent']['closed'] != 0) { ?><td class="closed" width="<?php echo $milestone['tickets']['percent']['closed']?>%"><a href="<?php echo $uri->anchor($project['slug'],'tickets')?>?milestone=<?php echo $milestone['slug']?>&status=closed"></a></td><?php } ?>
- <?php if($milestone['tickets']['percent']['open'] != 0) { ?><td class="open" width="<?php echo $milestone['tickets']['percent']['open']?>%"><a href="<?php echo $uri->anchor($project['slug'],'tickets')?>?milestone=<?php echo $milestone['slug']?>&status=open"></a></td><?php } ?>
+ <?php if($milestone['tickets']['total'] == 0) { ?>
+ <td class="open">
+ <a href="<?php echo $uri->anchor($project['slug'],'tickets')?>?milestone=<?php echo $milestone['slug']?>"></a>
+ </td>
+ <?php } else { ?>
+ <?php if($milestone['tickets']['percent']['closed'] != 0) { ?>
+ <td class="closed" width="<?php echo $milestone['tickets']['percent']['closed']?>%"><a href="<?php echo $uri->anchor($project['slug'],'tickets')?>?milestone=<?php echo $milestone['slug']?>&status=closed"></a></td>
+ <?php } ?>
+ <?php if($milestone['tickets']['percent']['open'] != 0) { ?>
+ <td class="open" width="<?php echo $milestone['tickets']['percent']['open']?>%"><a href="<?php echo $uri->anchor($project['slug'],'tickets')?>?milestone=<?php echo $milestone['slug']?>&status=open"></a></td>
+ <?php } ?>
+ <?php } ?>
</tr>
</table>
</td>
- <td class="percent"><?php echo $milestone['tickets']['percent']['closed']?>%</td>
+ <td class="percent">
+ <?php echo $milestone['tickets']['total'] > 0 ? $milestone['tickets']['percent']['closed'] : 0?>%
+ </td>
</tr>
</table>
<dl>
Please sign in to comment.
Something went wrong with that request. Please try again.