From 3979c28fb2caabb454802607a3198276b79d8ae3 Mon Sep 17 00:00:00 2001 From: tianshujie Date: Wed, 28 Sep 2022 11:05:50 +0800 Subject: [PATCH] * Finish task #70487. --- module/product/css/all.css | 4 ++-- module/program/control.php | 2 ++ module/program/css/product.css | 7 +++++++ module/program/view/product.html.php | 23 ++++++++++++++++++----- 4 files changed, 29 insertions(+), 7 deletions(-) diff --git a/module/product/css/all.css b/module/product/css/all.css index e4bac9340f..146f6bdf0e 100644 --- a/module/product/css/all.css +++ b/module/product/css/all.css @@ -90,5 +90,5 @@ th.c-actions {width: 50px;} #productTableList > tr.row-line.no-nest > td.text-left.table-nest-title > span.table-nest-icon.icon:before{content: '\e6f2'; background-color: white; display: inline;} .statistic {margin-left: 10px; color: #838a9d; float: left; position: relative; line-height: 28px;} .table-footer.fixed-footer .statistic {color: #fff;} -#productTableList .c-manager {padding-left: 20px;} -#productTableList .c-manager a {top: 7px; left: 28px;} +#productTableList .c-manager {padding-left: 14px;} +#productTableList .c-manager a {top: 7px; left: 22px;} diff --git a/module/program/control.php b/module/program/control.php index ba80180d95..7a18186f8d 100644 --- a/module/program/control.php +++ b/module/program/control.php @@ -170,6 +170,8 @@ class program extends control $this->view->orderBy = $orderBy; $this->view->pager = $pager; $this->view->users = $this->loadModel('user')->getPairs('noletter'); + $this->view->userIdPairs = $this->user->getPairs('noletter|showid'); + $this->view->usersAvatar = $this->user->getAvatarPairs(''); $this->view->products = $this->loadModel('product')->getStats($orderBy, $pager, $browseType, '', 'story', $programID); $this->display(); diff --git a/module/program/css/product.css b/module/program/css/product.css index 3d4a43d6f9..3f1c79c5c2 100644 --- a/module/program/css/product.css +++ b/module/program/css/product.css @@ -3,3 +3,10 @@ tbody.sortable > tr > td > span.sort-handler {color: #999;} .icon-move {color: #16a8f8;} .table.has-sort-head thead>tr>th>a:after, .table.has-sort-head thead>tr>th>a:before {top: -4px;} +.c-PO {width: 100px;} +.c-story {width: 300px;} +.c-bug {width: 150px;} +.c-plan, .c-release {width: 80px;} +.c-actions {width: 70px;} +#productList .c-manager {padding-left: 20px;} +#productList .c-manager a {top: 7px; left: 26px;} diff --git a/module/program/view/product.html.php b/module/program/view/product.html.php index 781b154887..226a3c0f94 100644 --- a/module/program/view/product.html.php +++ b/module/program/view/product.html.php @@ -48,11 +48,12 @@ idAB);?> product->name);?> - story->story;?> - bug->common;?> - product->plan;?> - product->release;?> - actions;?> + product->manager);?> + story->story;?> + bug->common;?> + product->plan;?> + product->release;?> + actions;?> story->draft;?> @@ -78,6 +79,18 @@ createLink('product', 'browse', 'product=' . $product->id), $product->name);?> + + PO)) + { + $userName = zget($users, $product->PO); + echo html::smallAvatar(array('avatar' => $usersAvatar[$product->PO], 'account' => $product->PO, 'name' => $userName), 'avatar-circle avatar-' . zget($userIdPairs, $product->PO)); + + $userID = isset($userIdPairs[$product->PO]) ? $userIdPairs[$product->PO] : ''; + echo html::a($this->createLink('user', 'profile', "userID=$userID", '', true), $userName, '', "title='{$userName}' data-toggle='modal' data-type='iframe' data-width='600'"); + } + ?> + stories['draft'];?> stories['active'];?> stories['changing'];?>