index : flyspray | |
Archlinux32 customized Flyspray installation | gitolite user |
summaryrefslogtreecommitdiff |
author | Andreas Baumann <mail@andreasbaumann.cc> | 2020-02-01 09:05:48 +0100 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2020-02-01 09:05:48 +0100 |
commit | 6854cb3f4d8219cf1829e32122eb2502a916eae9 (patch) | |
tree | 350feb504587d932e02837a1442b059759927646 /themes/CleanFS/templates/roadmap.text.tpl |
-rw-r--r-- | themes/CleanFS/templates/roadmap.text.tpl | 51 |
diff --git a/themes/CleanFS/templates/roadmap.text.tpl b/themes/CleanFS/templates/roadmap.text.tpl new file mode 100644 index 0000000..7d33199 --- /dev/null +++ b/themes/CleanFS/templates/roadmap.text.tpl @@ -0,0 +1,51 @@ +=== <?php echo Filters::noXSS($proj->prefs['project_title']); ?> === + +<?php foreach($data as $milestone): ?> +<?php echo Filters::noXSS(L('roadmapfor')); ?> <?php echo Filters::noXSS($milestone['name']); ?> + + +<?php echo Filters::noXSS($milestone['percent_complete']); ?><?php echo Filters::noXSS(L('of')); ?> <?php echo Filters::noXSS(count($milestone['all_tasks'])); ?> <?php echo Filters::noXSS(L('tasks')); ?> <?php echo Filters::noXSS(L('completed')); ?> <?php + if(count($milestone['open_tasks'])): + ?><?php echo Filters::noXSS(count($milestone['open_tasks'])); ?> <?php echo Filters::noXSS(L('opentasks')); ?>:<?php + endif; ?> +<?php + if ($proj->prefs['use_effort_tracking']) { + $total_estimated = 0; + $actual_effort = 0; + + foreach($milestone['open_tasks'] as $task) { + $total_estimated += $task['estimated_effort']; + $effort = new effort($task['task_id'],0); + $effort->populateDetails(); + + foreach($effort->details as $details) { + $actual_effort += $details['effort']; + } + $effort = null; + } + // } +?> + +<?php + if ($user->perms('view_estimated_effort')) { + echo Filters::noXSS(L('opentasks')); ?> - <?php echo Filters::noXSS(L('totalestimatedeffort')); ?>: <?php echo effort::SecondsToString($total_estimated, $proj->prefs['hours_per_manday'], $proj->prefs['estimated_effort_format']); +} ?> + +<?php + if ($user->perms('view_current_effort_done')) { + echo Filters::noXSS(L('opentasks')); ?> - <?php echo Filters::noXSS(L('currenteffortdone')); ?>: <?php echo effort::SecondsToString($actual_effort, $proj->prefs['hours_per_manday'], $proj->prefs['current_effort_done_format']); +} ?> +<?php } ?> + +<?php if(count($milestone['open_tasks'])): ?> + +<?php foreach($milestone['open_tasks'] as $task): + if(!$user->can_view_task($task)) continue; ?> +FS#<?php echo Filters::noXSS($task['task_id']); ?> - <?php echo Filters::noXSS($task['item_summary']); ?> + + +<?php endforeach; ?> + +<?php endif; ?> + +<?php endforeach; ?> |