[Fusionforge-commits] FusionForge branch master updated. a9969abbc573e028bc27abf0b1d4a80090529173

Alain Peyrat aljeux at fusionforge.org
Fri Sep 27 17:35:30 CEST 2013


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "FusionForge".

The branch, master has been updated
       via  a9969abbc573e028bc27abf0b1d4a80090529173 (commit)
      from  2212cd50b3996baf7b8e4f488321b3cb767cf356 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit a9969abbc573e028bc27abf0b1d4a80090529173
Author: Alain Peyrat <alain.peyrat at alcatel-lucent.com>
Date:   Fri Sep 27 17:35:18 2013 +0200

    Add a progressbar for related task in tracker

diff --git a/src/common/tracker/include/ArtifactTypeHtml.class.php b/src/common/tracker/include/ArtifactTypeHtml.class.php
index 1c1fe56..56fc383 100644
--- a/src/common/tracker/include/ArtifactTypeHtml.class.php
+++ b/src/common/tracker/include/ArtifactTypeHtml.class.php
@@ -320,6 +320,7 @@ class ArtifactTypeHtml extends ArtifactType {
 			echo '<b>'._("Related Tasks").':</b>'.'<br/>';
 			$title_arr = array();
 			$title_arr[] = _('Task Id and Summary');
+			$title_arr[] = _('Progress');
 			$title_arr[] = _('Start Date');
 			$title_arr[] = _('End Date');
 			$title_arr[] = _('Status');
@@ -338,6 +339,8 @@ class ArtifactTypeHtml extends ArtifactType {
 				$status   = $taskinfo['status_name'];
 				echo '<tr>
 						<td><a href="/pm/task.php?func=detailtask&project_task_id='.$taskid.'&group_id='.$groupid.'&group_project_id='.$projectid.'">[T'.$taskid.'] '.$summary.'</a></td>
+						<td><div class="percentbar" style="width: 100px;">
+							<div style="width:'.round($taskinfo['percent_complete']).'px;"></div></div></td>
 						<td>'.$startdate.'</td>
 						<td>'.$enddate.'</td>
 						<td>'.$status.' ('.$taskinfo['percent_complete'].'%)</td>'.
@@ -348,7 +351,8 @@ class ArtifactTypeHtml extends ArtifactType {
 
 			echo "\n<hr /><p style=\"text-align:right;\">";
 			printf(_('Average completion rate: %d%%'), (int)($totalPercentage/$taskcount));
-			echo "</p>\n";			echo '</td></tr>';
+			echo "</p>\n";
+			echo '</td></tr>';
 		}
 	}
 
diff --git a/src/www/themes/css/fusionforge.css b/src/www/themes/css/fusionforge.css
index de9c5de..d3cb200 100644
--- a/src/www/themes/css/fusionforge.css
+++ b/src/www/themes/css/fusionforge.css
@@ -1014,3 +1014,14 @@ fieldset {
 	color:#002BB8;
 	font-weight:normal;
 }
+
+.percentbar {
+	background:#CCCCCC;
+	border:1px solid #666666;
+	height:10px;
+}
+
+.percentbar div {
+	background: #28B8C0;
+	height: 10px;
+}

-----------------------------------------------------------------------

Summary of changes:
 src/common/tracker/include/ArtifactTypeHtml.class.php |    6 +++++-
 src/www/themes/css/fusionforge.css                    |   11 +++++++++++
 2 files changed, 16 insertions(+), 1 deletion(-)


hooks/post-receive
-- 
FusionForge



More information about the Fusionforge-commits mailing list