From 930d72178ea49a6874f15dc3f2db7d5535ae76ac Mon Sep 17 00:00:00 2001 From: xieqiyu Date: Tue, 9 Aug 2022 22:39:41 +0800 Subject: [PATCH] * Code for task#63790. --- module/execution/css/all.css | 2 +- module/execution/css/task.css | 2 +- module/execution/model.php | 6 +++--- module/my/css/execution.css | 2 +- module/my/view/execution.html.php | 10 +++++----- module/my/view/todo.html.php | 16 ++++++++-------- module/project/css/execution.css | 1 + module/story/model.php | 10 +++++----- 8 files changed, 25 insertions(+), 24 deletions(-) diff --git a/module/execution/css/all.css b/module/execution/css/all.css index c111722e41..872a6e1219 100644 --- a/module/execution/css/all.css +++ b/module/execution/css/all.css @@ -28,7 +28,7 @@ td.flex span.project-type-label {min-width: 40px;} .has-child > span {margin-right: 5px;} .c-name > .text-ellipsis {text-overflow: clip;} .c-code, .c-project {overflow: hidden; white-space: nowrap;} -th.c-status {text-align: center} +th.c-status, .c-begin, .c-end, .c-realBegan, .c-realEnd {text-align: center;} .c-project{text-overflow: unset !important;} canvas {height: 28px;} diff --git a/module/execution/css/task.css b/module/execution/css/task.css index df5a1d9368..42eda4f7e7 100644 --- a/module/execution/css/task.css +++ b/module/execution/css/task.css @@ -1,10 +1,10 @@ td.delayed {background: #e84e0f !important; color: white;} #int-dropdown {margin-left: -8px; border-radius: 4px; border: 1px solid #0c64eb;} #projectTaskForm table tbody tr td {overflow: hidden; text-overflow: ellipsis; white-space: nowrap;} -th.c-deadline {text-align: center;} .table td.c-estimate, .table td.c-consumed, .table td.c-left {padding-right: 12px;} .c-estimate {text-align: right;} .c-consumed {text-align: right;} +.c-deadline {text-align: center;} .c-left {text-align: right;} .table-footer {z-index: 1;} .btn-toolbar > .btn {margin-right: 5px !important;} diff --git a/module/execution/model.php b/module/execution/model.php index b04ced0a78..90704f6e09 100644 --- a/module/execution/model.php +++ b/module/execution/model.php @@ -4371,16 +4371,16 @@ class executionModel extends model echo '' . zget($users, $execution->PM) . ''; echo "" . zget($this->lang->project->statusList, $execution->status) . ''; echo '' . html::ring($execution->hours->progress) . ''; - echo helper::isZeroDate($execution->begin) ? '' : '' . $execution->begin . ''; + echo helper::isZeroDate($execution->begin) ? '' : '' . $execution->begin . ''; if(!helper::isZeroDate($execution->end)) { if($execution->status != 'closed') { - echo strtotime($today) > strtotime($execution->end) ? '' . $execution->end . '' : '' . $execution->end . ''; + echo strtotime($today) > strtotime($execution->end) ? '' . $execution->end . '' : '' . $execution->end . ''; } else { - echo '' . $execution->end . ''; + echo '' . $execution->end . ''; } } else diff --git a/module/my/css/execution.css b/module/my/css/execution.css index f4869cbc17..0c3f52f231 100644 --- a/module/my/css/execution.css +++ b/module/my/css/execution.css @@ -1,2 +1,2 @@ .c-hours, .c-progress {width: 80px !important;} -th.c-status {padding-right: 8px !important;} +.c-status, .c-date {padding-right: 8px !important; text-align: center;} diff --git a/module/my/view/execution.html.php b/module/my/view/execution.html.php index c7516e8a12..1b95627d6e 100644 --- a/module/my/view/execution.html.php +++ b/module/my/view/execution.html.php @@ -39,7 +39,7 @@ execution->begin;?> execution->end;?> - statusAB;?> + statusAB;?> team->role;?> team->join;?> my->hours;?> @@ -67,9 +67,9 @@ projectName) ? html::a($this->createLink('project', 'index', "id=$execution->project", '', '', $execution->project), $execution->projectName, '', "title='$execution->projectName'") : '';?> - begin;?> - end;?> - + begin;?> + end;?> + delay)):?> execution->delayed;?> @@ -78,7 +78,7 @@ role;?> - join;?> + join;?> hours;?> assignedToMeTasks;?> diff --git a/module/my/view/todo.html.php b/module/my/view/todo.html.php index b40d3042f8..a672b419a5 100644 --- a/module/my/view/todo.html.php +++ b/module/my/view/todo.html.php @@ -87,15 +87,15 @@ idAB);?> - todo->date);?> - todo->type);?> + todo->date);?> + todo->type);?> app->clientLang == 'en' ? "style='width:80px'" : '';?> title=todo->pri;?>> priAB);?> - todo->name);?> - todo->assignedBy);?> - todo->beginAB);?> - todo->endAB);?> - todo->status);?> + todo->name);?> + todo->assignedBy);?> + todo->beginAB);?> + todo->endAB);?> + todo->status);?> actions;?> @@ -111,7 +111,7 @@ id?> - date == '2030-01-01' ? $lang->todo->periods['future'] : $todo->date;?> + date == '2030-01-01' ? $lang->todo->periods['future'] : $todo->date;?> todo->typeList, $todo->type, '');?> pri;?>' title='todo->priList, $todo->pri, $todo->pri);?>'>todo->priList, $todo->pri)?> createLink('todo', 'view', "id=$todo->id&from=my", '', true), $todo->name, '', "data-toggle='modal' data-width='80%' data-type='iframe' data-title='" . $lang->todo->view . "' data-icon='check'");?> diff --git a/module/project/css/execution.css b/module/project/css/execution.css index 62600ca993..7b59058feb 100644 --- a/module/project/css/execution.css +++ b/module/project/css/execution.css @@ -7,3 +7,4 @@ th.table-nest-title-edit {padding-left: 50px !important;} th.table-nest-title-edit .table-nest-toggle {left: 28px;} th.table-nest-title .check-all {position: absolute; left: 15px; top: 7px;} +.c-date {text-align: center;} diff --git a/module/story/model.php b/module/story/model.php index bc342f887b..59d0c1491c 100644 --- a/module/story/model.php +++ b/module/story/model.php @@ -4637,25 +4637,25 @@ class storyModel extends model echo zget($users, $story->openedBy, $story->openedBy); break; case 'openedDate': - echo substr($story->openedDate, 5, 11); + echo helper::isZeroDate($story->openedDate) ? '' : substr($story->openedDate, 5, 11); break; case 'assignedTo': $this->printAssignedHtml($story, $users); break; case 'assignedDate': - echo substr($story->assignedDate, 5, 11); + echo helper::isZeroDate($story->assignedDate) ? '' : substr($story->assignedDate, 5, 11); break; case 'reviewedBy': echo $story->reviewedBy; break; case 'reviewedDate': - echo substr($story->reviewedDate, 5, 11); + echo helper::isZeroDate($story->reviewedDate) ? '' : substr($story->reviewedDate, 5, 11); break; case 'closedBy': echo zget($users, $story->closedBy, $story->closedBy); break; case 'closedDate': - echo substr($story->closedDate, 5, 11); + echo helper::isZeroDate($story->closedDate) ? '' : substr($story->closedDate, 5, 11); break; case 'closedReason': echo zget($this->lang->story->reasonList, $story->closedReason, $story->closedReason); @@ -4664,7 +4664,7 @@ class storyModel extends model echo zget($users, $story->lastEditedBy, $story->lastEditedBy); break; case 'lastEditedDate': - echo substr($story->lastEditedDate, 5, 11); + echo helper::isZeroDate($story->lastEditedDate) ? '' : substr($story->lastEditedDate, 5, 11); break; case 'feedbackBy': echo $story->feedbackBy;