Hello all,
I'm trying to get the time tracking patch up and working on 0.10.3.1
and I'm having trouble getting the second progress bar displayed in
roadmap and the detailed milestone view.
at the end is the relevant parts of the patch for displaying the hours
completed progress bar.
any help would be greatly appreciated!
Respectfully,
Christopher Taylor
Index: templates/roadmap.cs
===================================================================
--- templates/roadmap.cs (revision 4073)
+++ templates/roadmap.cs (working copy)
@@ -63,6 +63,35 @@
var:stats.active_tickets ?></a></dd>
</dl><?cs
/if ?><?cs
+ if:#stats.has_stats ?>
+ <div style="margin: 0; height: 1px;"></div>
+ <table class="progress">
+ <tr><?cs
+ if:#stats.work_percent_complete > #0.0 ?>
+ <td class="closed" style="width: <?cs
+ var:#stats.work_percent_complete ?>%"><a title="<?cs
+ var:stats.spent_work ?> h of <?cs
+ var:stats.estimated_work ?> h completed"> </a></td><?cs
+ /if ?><?cs
+ if:#stats.work_percent_remaining > #0.0 ?>
+ <td class="open" style="width: <?cs
+ var:#stats.work_percent_remaining ?>%"><a title="<?cs
+ var:stats.remaining_work ?> h of <?cs
+ var:stats.estimated_work ?> h remaining"> </a></td><?cs
+ /if ?>
+ </tr>
+ </table>
+ <p class="percent"><?cs var:#stats.work_percent_complete ?>%</p>
+ <dl>
+ <dt>Estimated work:</dt>
+ <dd><?cs var:stats.estimated_work ?> h
+ (<?cs var:stats.estimated_diff ?> h)</dd>
+ <dt>Spent work:</dt>
+ <dd><?cs var:stats.spent_work ?> h</dd>
+ <dt>Remaining work:</dt>
+ <dd><?cs var:stats.remaining_work ?> h</dd>
+ </dl><?cs
+ /if ?><?cs
/with ?>
</div>
<div class="description"><?cs var:milestone.description ?></div>
Index: templates/milestone.cs
===================================================================
--- templates/milestone.cs (revision 4073)
+++ templates/milestone.cs (working copy)
@@ -162,6 +162,35 @@
var:stats.active_tickets ?></a></dd>
</dl><?cs
/if ?><?cs
+ if:#stats.has_stats ?>
+ <div style="margin: 0; height: 1px;"></div>
+ <table class="progress">
+ <tr><?cs
+ if:#stats.work_percent_complete > #0.0 ?>
+ <td class="closed" style="width: <?cs
+ var:#stats.work_percent_complete ?>%"><a title="<?cs
+ var:stats.spent_work ?> h of <?cs
+ var:stats.estimated_work ?> h completed"> </a></td><?cs
+ /if ?><?cs
+ if:#stats.work_percent_remaining > #0.0 ?>
+ <td class="open" style="width: <?cs
+ var:#stats.work_percent_remaining ?>%"><a title="<?cs
+ var:stats.remaining_work ?> h of <?cs
+ var:stats.estimated_work ?> h remaining"> </a></td><?cs
+ /if ?>
+ </tr>
+ </table>
+ <p class="percent"><?cs var:#stats.work_percent_complete ?>%</p>
+ <dl>
+ <dt>Estimated work:</dt>
+ <dd><?cs var:stats.estimated_work ?> h
+ (<?cs var:stats.estimated_diff ?> h)</dd>
+ <dt>Spent work:</dt>
+ <dd><?cs var:stats.spent_work ?> h</dd>
+ <dt>Remaining work:</dt>
+ <dd><?cs var:stats.remaining_work ?> h</dd>
+ </dl><?cs
+ /if ?><?cs
/with ?>
</div>
<form id="stats" action="" method="get">
@@ -205,6 +234,28 @@
<p class="percent"><?cs var:group.closed_tickets ?>/<?cs
var:group.total_tickets ?></p>
<?cs /if ?></td>
+ </tr>
+ <tr>
+ <th scope="row"></th>
+ <td style="white-space: nowrap"><?cs if:#group.estimated_work ?>
+ <table class="progress" style="width: <?cs
+ var:#group.percent_total_time * #80 /
#milestone.stats.max_percent_total_time ?>%">
+ <tr>
+ <td class="closed" style="width: <?cs
+ var:#group.work_percent_complete ?>%"><a title="<?cs
+ var:group.spent_work ?> h of <?cs
+ var:group.estimated_work ?> h completed"> </a>
+ </td>
+ <td class="open" style="width: <?cs
+ var:#group.work_percent_remaining ?>%"><a title="<?cs
+ var:group.remaining_work ?> h of <?cs
+ var:group.estimated_work ?> h remaining"> </a>
+ </td>
+ </tr>
+ </table>
+ <p class="percent"><?cs var:group.spent_work ?> h/<?cs
+ var:group.estimated_work ?> h</p>
+ <?cs /if ?></td>
</tr><?cs
/each ?>
</table><?cs /if ?>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Trac
Development" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/trac-dev?hl=en
-~----------~----~----~----~------~----~------~--~---