From 8dc609e4a0d37e73a1ee0ec7f889cd56da0149cd Mon Sep 17 00:00:00 2001 From: wangyidong Date: Tue, 13 Dec 2022 14:15:39 +0800 Subject: [PATCH] * code task #79859,79858,79857,79856,79855,79854. --- module/build/css/view.css | 16 ++++++ module/build/view/view.html.php | 62 ++++++++++++------------ module/productplan/css/view.css | 2 +- module/projectrelease/css/view.css | 12 +++++ module/projectrelease/view/view.html.php | 54 ++++++++++----------- module/release/css/view.css | 12 +++++ module/release/view/view.html.php | 56 ++++++++++----------- 7 files changed, 126 insertions(+), 88 deletions(-) diff --git a/module/build/css/view.css b/module/build/css/view.css index 0789a2c0c3..baaa980afa 100644 --- a/module/build/css/view.css +++ b/module/build/css/view.css @@ -7,3 +7,19 @@ .body-modal #mainContent {min-height: 200px;} td.article-content{overflow:auto !important;} td.c-build{white-space: nowrap; overflow:hidden;} + +#stories th, #stories td{padding-left:16px;} +#stories .c-estimate{width:90px; text-align:right} +#stories .c-status{width:120px} +#stories .c-stage{width:130px; text-align:left;} +#bugs .c-status{width:100px;} +#bugs .c-build{width:160px; text-align:left} +#bugs .c-user{width:120px;} +#bugs .c-date{width:130px;} +#bugs .c-actions-1{width:60px;} +#generatedBugs .c-id {width:60px;} +#generatedBugs .c-severity {width:70px;} +#generatedBugs .c-status {width:100px;} +#generatedBugs .c-build {width:160px; text-align:left} +#generatedBugs .c-user {width:100px;} +#generatedBugs .c-date {width:120px;} diff --git a/module/build/view/view.html.php b/module/build/view/view.html.php index 036a9518f5..9ccf26e647 100644 --- a/module/build/view/view.html.php +++ b/module/build/view/view.html.php @@ -88,15 +88,15 @@ tbody tr td:first-child input {display: none;} idAB);?> - pri;?>>priAB);?> story->title);?> + pri;?>>priAB);?> + statusAB);?> build->linkedBuild;?> - openedByAB);?> - story->estimateAB);?> - statusAB);?> - story->stageAB);?> + openedByAB);?> + story->estimateAB);?> + story->stageAB);?> actions?> @@ -125,11 +125,6 @@ tbody tr td:first-child input {display: none;} id);?> - - pri):?> - story->priList, $story->pri, $story->pri);?> - - parent > 0) echo "{$lang->story->childrenAB}"; @@ -147,17 +142,20 @@ tbody tr td:first-child input {display: none;} } ?> + + pri):?> + story->priList, $story->pri, $story->pri);?> + + + + processStatus('story', $story);?> + openedBy);?> - estimate . $config->hourUnit;?> - - - processStatus('story', $story);?> - - - story->stageList[$story->stage];?> + estimate . $config->hourUnit;?> + story->stageList[$story->stage];?> idAB);?> - bug->title);?> - bug->status);?> + bug->title);?> + bug->status);?> - build->linkedBuild?> + build->linkedBuild?> openedByAB);?> bug->openedDateAB);?> - bug->resolvedByAB);?> + bug->resolvedBy);?> bug->resolvedDateAB);?> actions?> @@ -254,7 +252,7 @@ tbody tr td:first-child input {display: none;} - + openedBy);?> openedDate) ? '' : substr($bug->openedDate, 5, 11);?> @@ -297,14 +295,14 @@ tbody tr td:first-child input {display: none;} id}&type=generatedBug&link=$link¶m=$param&orderBy=%s";?> - idAB);?> - bug->severity;?>>bug->severityAB);?> - bug->title);?> - bug->status);?> - bug->openedBuild;?> + idAB);?> + bug->title);?> + bug->severity;?>>bug->severityAB);?> + bug->status);?> + bug->openedBuild;?> openedByAB);?> bug->openedDateAB);?> - bug->resolvedByAB);?> + bug->resolvedBy);?> bug->resolvedDateAB);?> @@ -324,6 +322,9 @@ tbody tr td:first-child input {display: none;} createLink('bug', 'view', "bugID=$bug->id", '', true);?> id);?> + + title, '', isonlybody() ? "data-width='1000'" : "class='iframe' data-width='1000'");?> + bug->severityList, $bug->severity, $bug->severity);?> @@ -331,9 +332,6 @@ tbody tr td:first-child input {display: none;} - - title, '', isonlybody() ? "data-width='1000'" : "class='iframe' data-width='1000'");?> - processStatus('bug', $bug);?> @@ -343,7 +341,7 @@ tbody tr td:first-child input {display: none;} $openedBuilds = ''; foreach(explode(',', $bug->openedBuild) as $buildID) $openedBuilds .= ($buildID == 'trunk' ? 'Trunk' : zget($buildPairs, $buildID, '')) . ' '; ?> - + openedBy);?> openedDate) ? '' : substr($bug->openedDate, 5, 11);?> resolvedBy);?> diff --git a/module/productplan/css/view.css b/module/productplan/css/view.css index 64fc550a1c..b924713e90 100644 --- a/module/productplan/css/view.css +++ b/module/productplan/css/view.css @@ -34,5 +34,5 @@ ol, ul {padding-left: 20px;} #actionsBox a:last-of-type + .divider {display: none;} #actionsBox div.divider:first-child {display: none;} -#bugs th.c-pri, #bugs th.c-actions {width:72px !important;} +#bugs th.c-pri, #bugs th.c-actions {width:70px !important;} #bugs th.c-status, #bugs th.c-user {width:120px !important;} diff --git a/module/projectrelease/css/view.css b/module/projectrelease/css/view.css index a35a23f770..b229853430 100644 --- a/module/projectrelease/css/view.css +++ b/module/projectrelease/css/view.css @@ -10,3 +10,15 @@ ol, ul {padding-left: 20px;} .c-id {overflow: hidden; text-overflow: ellipsis; white-space: nowrap;} td.c-build{white-space: nowrap; overflow:hidden;} + +#stories th, #stories td{padding-left:16px;} +#stories .c-build{width:160px; text-align:left;} +#stories .c-status{width:120px;} +#stories .c-stage{width:130px; text-align:left;} +#stories .c-estimate{width:90px; text-align:right;} +#bugs .c-build{width:160px; text-align:left;} +#bugs .c-user{width:120px;} +#bugs .c-date{width:130px;} +#leftBugs .c-build{width:160px; text-align:left;} +#leftBugs .c-user{width:120px;} +#leftBugs .c-date{width:160px;} diff --git a/module/projectrelease/view/view.html.php b/module/projectrelease/view/view.html.php index d8c5b7d6cd..7475a422a2 100644 --- a/module/projectrelease/view/view.html.php +++ b/module/projectrelease/view/view.html.php @@ -60,7 +60,7 @@ ?> id}&type=story&link=$link¶m=$param&orderBy=%s";?> - +
@@ -69,17 +69,17 @@ idAB);?> + story->title);?> priAB);?> - story->title);?> - build->linkedBuild;?> - openedByAB);?> - story->estimateAB);?> - statusAB);?> - story->stageAB);?> + statusAB);?> + build->linkedBuild;?> + openedByAB);?> + story->estimateAB);?> + story->stageAB);?> actions?> - + $story):?> createLink('story', 'view', "storyID=$story->id&version=0¶m={$this->session->project}", '', true);?> @@ -92,20 +92,20 @@ id);?> - pri;?>' title='story->priList, $story->pri, $story->pri);?>'>story->priList, $story->pri, $story->pri);?> parent > 0) echo "{$lang->story->childrenAB}"; echo html::a($storyLink,$story->title, '', "class='preview'"); ?> - buildName?> - openedBy);?> - estimate . $config->hourUnit;?> + pri;?>' title='story->priList, $story->pri, $story->pri);?>'>story->priList, $story->pri, $story->pri);?> processStatus('story', $story);?> - story->stageList[$story->stage];?> + buildName?> + openedBy);?> + estimate . $config->hourUnit;?> + story->stageList[$story->stage];?> idAB);?> - bug->title);?> - bug->status);?> - bug->resolvedBuild;?> + bug->title);?> + bug->status);?> + bug->resolvedBuild;?> openedByAB);?> - bug->openedDateAB);?> - bug->resolvedByAB);?> - bug->resolvedDateAB);?> - actions;?> + bug->openedDateAB);?> + bug->resolvedBy);?> + bug->resolvedDateAB);?> + actions;?> @@ -259,13 +259,13 @@ idAB);?> + bug->title);?> bug->severity;?>>bug->severityAB);?> - bug->title);?> - bug->status);?> - bug->openedBuild;?> - openedByAB);?> - bug->openedDateAB);?> - actions;?> + bug->status);?> + bug->openedBuild;?> + openedByAB);?> + bug->openedDateAB);?> + actions;?> id);?> + title, '', "class='preview'");?> ' title='bug->severityList, $bug->severity);?>' data-severity='severity;?>'>bug->severityList, $bug->severity, $bug->severity);?> @@ -299,7 +300,6 @@ - title, '', "class='preview'");?> processStatus('bug', $bug);?> id}&type=story&link=$link¶m=$param&orderBy=%s";?> - +
@@ -71,17 +71,17 @@ idAB);?> + story->title);?> pri;?>>priAB);?> - story->title);?> - build->linkedBuild;?> - openedByAB);?> - story->estimateAB);?> - statusAB);?> - story->stageAB);?> + statusAB);?> + build->linkedBuild;?> + openedByAB);?> + story->estimateAB);?> + story->stageAB);?> actions?> - + $story):?> createLink('story', 'view', "storyID=$story->id", '', true);?> @@ -94,20 +94,20 @@ id);?> - pri;?>' title='story->priList, $story->pri, $story->pri);?>'>story->priList, $story->pri, $story->pri);?> parent > 0) echo "{$lang->story->childrenAB}"; echo html::a($storyLink,$story->title, '', "class='preview'"); ?> - buildName?> - openedBy);?> - estimate . $config->hourUnit;?> - + pri;?>' title='story->priList, $story->pri, $story->pri);?>'>story->priList, $story->pri, $story->pri);?> + processStatus('story', $story);?> - story->stageList[$story->stage];?> + buildName?> + openedBy);?> + estimate . $config->hourUnit;?> + story->stageList[$story->stage];?> idAB);?> - bug->title);?> - bug->status);?> - bug->resolvedBuild;?> + bug->title);?> + bug->status);?> + bug->resolvedBuild;?> openedByAB);?> - bug->openedDateAB);?> - bug->resolvedByAB);?> - bug->resolvedDateAB);?> - actions;?> + bug->openedDateAB);?> + bug->resolvedBy);?> + bug->resolvedDateAB);?> + actions;?> @@ -261,13 +261,13 @@ idAB);?> + bug->title);?> bug->severity;?>>bug->severityAB);?> - bug->title);?> - bug->status);?> - bug->openedBuild;?> - openedByAB);?> - bug->openedDateAB);?> - actions;?> + bug->status);?> + bug->openedBuild;?> + openedByAB);?> + bug->openedDateAB);?> + actions;?> id);?> + title, '', "class='preview'");?> ' title='bug->severityList, $bug->severity);?>' data-severity='severity;?>'>bug->severityList, $bug->severity, $bug->severity);?> @@ -301,7 +302,6 @@ - title, '', "class='preview'");?> processStatus('bug', $bug);?>