From 4f6744ec477474addbdf63dad39d308e36a4ad31 Mon Sep 17 00:00:00 2001 From: chenfeiCF Date: Fri, 22 Apr 2016 13:25:16 +0800 Subject: [PATCH] * code for task #2576: add color tag for story, task, bug, case in block and my module. --- module/block/view/bugblock.html.php | 2 +- module/block/view/caseblock.html.php | 2 +- module/block/view/storyblock.html.php | 2 +- module/block/view/taskblock.html.php | 2 +- module/my/view/bug.html.php | 2 +- module/my/view/story.html.php | 2 +- module/my/view/task.html.php | 2 +- module/my/view/testcase.html.php | 2 +- 8 files changed, 8 insertions(+), 8 deletions(-) diff --git a/module/block/view/bugblock.html.php b/module/block/view/bugblock.html.php index 0d7ee6fb1b..667df34e49 100644 --- a/module/block/view/bugblock.html.php +++ b/module/block/view/bugblock.html.php @@ -28,7 +28,7 @@ id;?> bug->severityList, $bug->severity, $bug->severity)?> bug->priList, $bug->pri, $bug->pri)?> - title?> + title?> diff --git a/module/block/view/caseblock.html.php b/module/block/view/caseblock.html.php index 359f490159..f9c574e93b 100644 --- a/module/block/view/caseblock.html.php +++ b/module/block/view/caseblock.html.php @@ -29,7 +29,7 @@ > id;?> case->priList, $case->pri, $case->pri)?> - title?> + title?> lastRunDate)) echo date(DT_MONTHTIME1, strtotime($case->lastRunDate));?> lastRunResult) echo $lang->testcase->resultList[$case->lastRunResult];?> testcase->statusList[$case->status];?> diff --git a/module/block/view/storyblock.html.php b/module/block/view/storyblock.html.php index ba5499a14c..cc26ad32c0 100644 --- a/module/block/view/storyblock.html.php +++ b/module/block/view/storyblock.html.php @@ -29,7 +29,7 @@ > id;?> story->priList, $story->pri, $story->pri)?> - title?> + title?> estimate?> story->statusList, $story->status, $story->status);?> story->stageList, $story->stage, $story->stage);?> diff --git a/module/block/view/taskblock.html.php b/module/block/view/taskblock.html.php index 21d499e2fe..c845b3beff 100644 --- a/module/block/view/taskblock.html.php +++ b/module/block/view/taskblock.html.php @@ -32,7 +32,7 @@ td.delayed{background: #e84e0f!important; color: white;} > id;?> task->priList, $task->pri, $task->pri)?> - name?> + name?> estimate?> '>deadline, 0, 4) > 0) echo $task->deadline;?> task->statusList, $task->status, $task->status);?> diff --git a/module/my/view/bug.html.php b/module/my/view/bug.html.php index 7a944c613f..e68cccebcb 100644 --- a/module/my/view/bug.html.php +++ b/module/my/view/bug.html.php @@ -49,7 +49,7 @@ bug->severityList, $bug->severity, $bug->severity)?>'>bug->severityList, $bug->severity, $bug->severity);?> bug->priList, $bug->pri, $bug->pri)?>'>bug->priList, $bug->pri, $bug->pri)?> bug->typeList[$bug->type]?> - createLink('bug', 'view', "bugID=$bug->id"), $bug->title);?> + createLink('bug', 'view', "bugID=$bug->id"), $bug->title, null, "style='color: $bug->color'");?> openedBy];?> assignedTo];?> resolvedBy];?> diff --git a/module/my/view/story.html.php b/module/my/view/story.html.php index 83c879bd23..04d7e6018a 100644 --- a/module/my/view/story.html.php +++ b/module/my/view/story.html.php @@ -54,7 +54,7 @@ story->priList, $story->pri, $story->pri);?>'>story->priList, $story->pri, $story->pri);?> productTitle;?> - title);?> + title, null, "style='color: $story->color'");?> planTitle;?> openedBy];?> estimate;?> diff --git a/module/my/view/task.html.php b/module/my/view/task.html.php index 0f1fea1893..8ad7d267e2 100644 --- a/module/my/view/task.html.php +++ b/module/my/view/task.html.php @@ -54,7 +54,7 @@ task->priList, $task->pri, $task->pri);?>'>task->priList, $task->pri, $task->pri);?> createLink('project', 'browse', "projectid=$task->projectID"), $task->projectName);?> - createLink('task', 'view', "taskID=$task->id"), $task->name);?> + createLink('task', 'view', "taskID=$task->id"), $task->name, null, "style='color: $task->color'");?> openedBy);?> assignedTo);?> finishedBy);?> diff --git a/module/my/view/testcase.html.php b/module/my/view/testcase.html.php index bbb724bfe9..3685badb9c 100644 --- a/module/my/view/testcase.html.php +++ b/module/my/view/testcase.html.php @@ -54,7 +54,7 @@ createLink('testcase', 'view', "testcaseID=$case->id"), sprintf('%03d', $case->id));?> testcase->priList, $case->pri, $case->pri)?>'>testcase->priList, $case->pri, $case->pri)?> - createLink('testcase', 'view', "testcaseID=$case->id"), $case->title);?> + createLink('testcase', 'view', "testcaseID=$case->id"), $case->title, null, "style='color: $case->color'");?> testcase->typeList[$case->type];?> openedBy];?> lastRunner];?>