diff --git a/module/block/view/programblock.html.php b/module/block/view/programblock.html.php
index 0308d121d2..613b95c471 100644
--- a/module/block/view/programblock.html.php
+++ b/module/block/view/programblock.html.php
@@ -35,8 +35,8 @@
teamCount;?> |
- consumed;?> |
- budget . ' ' . zget($lang->program->unitList, $project->budgetUnit);?> |
+ consumed . ' ' . $lang->project->workHourUnit;?> |
+ budget != 0 ? zget($lang->program->currencySymbol, $project->budgetUnit) . number_format($project->budget, 2) : $lang->program->future;?> |
leftStories;?> |
leftTasks;?> |
leftBugs;?> |
diff --git a/module/block/view/programteamblock.html.php b/module/block/view/programteamblock.html.php
index ce451d09da..bb89a6860b 100644
--- a/module/block/view/programteamblock.html.php
+++ b/module/block/view/programteamblock.html.php
@@ -37,7 +37,7 @@ $maxConsumed = 0;
-
consumed;?>
+
consumed . $lang->project->workHourUnit;?>
diff --git a/module/block/view/projectblock.html.php b/module/block/view/projectblock.html.php
index df642f9424..711b5fa8e5 100644
--- a/module/block/view/projectblock.html.php
+++ b/module/block/view/projectblock.html.php
@@ -51,9 +51,9 @@
- hours->totalEstimate;?> |
- hours->totalConsumed;?> |
- hours->totalLeft;?> |
+ hours->totalEstimate . ' ' . $lang->project->workHourUnit;?> |
+ hours->totalConsumed . ' ' . $lang->project->workHourUnit;?> |
+ hours->totalLeft . ' ' . $lang->project->workHourUnit;?> |
diff --git a/module/block/view/scrumlistblock.html.php b/module/block/view/scrumlistblock.html.php
index 1ef46160d8..28721607fc 100644
--- a/module/block/view/scrumlistblock.html.php
+++ b/module/block/view/scrumlistblock.html.php
@@ -51,9 +51,9 @@
|
- hours->totalEstimate;?> |
- hours->totalConsumed;?> |
- hours->totalLeft;?> |
+ hours->totalEstimate . ' ' . $lang->project->workHourUnit;?> |
+ hours->totalConsumed . ' ' . $lang->project->workHourUnit;?> |
+ hours->totalLeft . ' ' . $lang->project->workHourUnit;?> |
diff --git a/module/block/view/scrumoverviewblock.html.php b/module/block/view/scrumoverviewblock.html.php
index d5ac5ada73..341de826fa 100644
--- a/module/block/view/scrumoverviewblock.html.php
+++ b/module/block/view/scrumoverviewblock.html.php
@@ -37,18 +37,19 @@
block->consumedHours;?>
-
- consumed ? html::a($this->createLink('project', 'index', 'locate=no'), $totalData[$projectID]->consumed) : 0;?>
+
+ consumed ? html::a($this->createLink('project', 'index', 'locate=no'), $totalData[$projectID]->consumed . $lang->project->workHourUnit) : 0;?>
-
+
block->spent;?>
- ¥0
+ budget != 0 ? zget($lang->program->currencySymbol, $totalData[$projectID]->budgetUnit) . number_format($totalData[$projectID]->budget, 2) : $lang->program->future;?>
+
-
+
diff --git a/module/block/view/taskblock.html.php b/module/block/view/taskblock.html.php
index 814fa2bca1..f6c8778f45 100644
--- a/module/block/view/taskblock.html.php
+++ b/module/block/view/taskblock.html.php
@@ -46,7 +46,7 @@
| task->priList, $task->pri, $task->pri)?> |
createLink('task', 'view', "taskID=$task->id", '', '', $task->PRJ), $task->name)?> |
- estimate;?> |
+ estimate . ' ' . $lang->project->workHourUnit;?> |
deadline, 0, 4) > 0) echo $task->deadline;?> |
processStatus('task', $task);?>
diff --git a/module/program/model.php b/module/program/model.php
index df4e8fc047..ec9d835f3d 100644
--- a/module/program/model.php
+++ b/module/program/model.php
@@ -1743,6 +1743,10 @@ class programModel extends model
$title = "title='{$PRJProgram}'";
}
+ if($id == 'PRJEstimate') $title = "title='{$project->hours->totalEstimate} {$this->lang->project->workHour}'";
+ if($id == 'PRJConsume') $title = "title='{$project->hours->totalConsumed} {$this->lang->project->workHour}'";
+ if($id == 'PRJSurplus') $title = "title='{$project->hours->totalLeft} {$this->lang->project->workHour}'";
+
echo "";
switch($id)
{
@@ -1780,13 +1784,13 @@ class programModel extends model
echo $project->teamCount;
break;
case 'PRJEstimate':
- echo $project->hours->totalEstimate;
+ echo $project->hours->totalEstimate . ' ' . $this->lang->project->workHourUnit;
break;
case 'PRJConsume':
- echo $project->hours->totalConsumed;
+ echo $project->hours->totalConsumed . ' ' . $this->lang->project->workHourUnit;
break;
case 'PRJSurplus':
- echo $project->hours->totalLeft;
+ echo $project->hours->totalLeft . ' ' . $this->lang->project->workHourUnit;
break;
case 'PRJProgress':
echo "{$project->hours->progress}% ";
diff --git a/module/project/css/grouptask.css b/module/project/css/grouptask.css
index db07791412..364fa01e70 100644
--- a/module/project/css/grouptask.css
+++ b/module/project/css/grouptask.css
@@ -24,3 +24,4 @@
.is-firefox .group-header:before {content: ' '; position: absolute; top: 0; right: 0; left: 0; bottom: 0; background: #fff; z-index: 0;}
.is-firefox .group-header > a,
.is-firefox .group-header > .groupSummary {position: relative; z-index: 1;}
+.c-hours {white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
diff --git a/module/project/view/grouptask.html.php b/module/project/view/grouptask.html.php
index 47cb024004..8fa760f102 100644
--- a/module/project/view/grouptask.html.php
+++ b/module/project/view/grouptask.html.php
@@ -184,7 +184,7 @@
assignedTo])) printf($lang->project->memberHoursAB, zget($users, $task->assignedTo), $members[$task->assignedTo]->totalHours);?>
- project->groupSummaryAB, $groupSum, $groupWait, $groupDoing, $groupEstimate, $groupConsumed, $groupLeft);?>
+ project->groupSummaryAB, $groupSum, $groupWait, $groupDoing, $groupEstimate . $lang->project->workHourUnit, $groupConsumed . $lang->project->workHourUnit, $groupLeft . $lang->project->workHourUnit);?>
|
@@ -202,9 +202,9 @@
processStatus('task', $task);?> |
" . $task->assignedToRealName . "";?> |
finishedBy);?> |
- estimate;?> |
- consumed;?> |
- left;?> |
+ estimate . ' ' . $lang->project->workHourUnit;?> |
+ consumed . ' ' . $lang->project->workHourUnit;?> |
+ left . ' ' . $lang->project->workHourUnit;?> |
progress . '%';?> |
task->typeList, $task->type);?> |
'>deadline, 0, 4) > 0) echo $task->deadline;?> |
diff --git a/module/project/view/preview.html.php b/module/project/view/preview.html.php
index 8ca08d6f3a..d88faf9c60 100644
--- a/module/project/view/preview.html.php
+++ b/module/project/view/preview.html.php
@@ -128,7 +128,7 @@ $dataType = '';
| task->leftThisTime?> |
- left) echo $content->left?> |
+ left) echo $content->left . $lang->project->workHourUnit;?> |
|
|
|
diff --git a/module/task/view/recordestimate.html.php b/module/task/view/recordestimate.html.php
index 398a6bacc4..a6e624436a 100644
--- a/module/task/view/recordestimate.html.php
+++ b/module/task/view/recordestimate.html.php
@@ -53,8 +53,8 @@
| id;?> |
date;?> |
- consumed;?> |
- left;?> |
+ consumed . ' ' . $lang->project->workHourUnit;?> |
+ left . ' ' . $lang->project->workHourUnit;?> |
work;?> |
team) or $task->assignedTo == $this->app->user->account):?>
diff --git a/module/user/control.php b/module/user/control.php
index aa6cdb1f6a..8601353aea 100644
--- a/module/user/control.php
+++ b/module/user/control.php
@@ -25,6 +25,7 @@ class user extends control
$this->loadModel('company')->setMenu();
$this->loadModel('dept');
$this->loadModel('todo');
+ $this->app->loadLang('project');
$this->app->loadModuleConfig($this->moduleName);//Finish task #5118.(Fix bug #2271)
}
diff --git a/module/user/css/task.css b/module/user/css/task.css
index 8b66169867..48577511db 100644
--- a/module/user/css/task.css
+++ b/module/user/css/task.css
@@ -1 +1,2 @@
td.delayed{color:#fff; background: #e84e0f!important;}
+.hours {white-space:nowrap; overflow:hidden; text-overflow:ellipsis;}
diff --git a/module/user/view/task.html.php b/module/user/view/task.html.php
index 8b82f83ca4..8b3042a14f 100644
--- a/module/user/view/task.html.php
+++ b/module/user/view/task.html.php
@@ -62,9 +62,9 @@
parent > 0) echo '' . $this->lang->task->childrenAB . ' ';?>
createLink('task', 'view', "taskID=$task->id", '', false, $task->PRJ), $task->name, null, "style='color: $task->color'");?>
|
- estimate;?> |
- consumed;?> |
- left;?> |
+ estimate . ' ' . $lang->project->workHourUnit;?> |
+ consumed . ' ' . $lang->project->workHourUnit;?> |
+ left . ' ' . $lang->project->workHourUnit;?> |
delay)) echo 'delayed';?>>deadline, 0, 4) > 0) echo $task->deadline;?> |
processStatus('task', $task);?> |