diff --git a/module/program/css/browse.css b/module/program/css/browse.css index eb6c0dcc9f..0dacf2c83a 100644 --- a/module/program/css/browse.css +++ b/module/program/css/browse.css @@ -7,3 +7,9 @@ tbody.sortable > tr > td.sort-handler .table-nest-toggle:before {cursor: pointer label[for^="projectIdList"]:before {top: 1px; width:14px; height:14px;} label[for^="projectIdList"]:after {width: 14px; height:14px;} tbody.sortable > tr > td.sort-handler {color: #3c4353 !important;} + +.has-prefix {position: relative; display: flex; align-items: center;} +.has-prefix > span {flex: none;} +.has-prefix > a {padding-left: 5px;} + +.has-suffix > a {max-width: calc(100% - 100px); padding-right: 5px; color: #0c60e1; display: inline-block; max-width: calc(100% - 50px);} diff --git a/module/program/view/browsebylist.html.php b/module/program/view/browsebylist.html.php index 39511dc8fe..c125b501a8 100644 --- a/module/program/view/browsebylist.html.php +++ b/module/program/view/browsebylist.html.php @@ -49,7 +49,7 @@ ?> > - ' title='name?>'> + has-prefix has-suffix' title='name?>'> type == 'program') $icon = ' icon-program'; @@ -60,7 +60,14 @@ type == 'program'):?> user->view->programs},", ",$program->id,") !== false ? html::a($this->createLink('program', 'product', "programID=$program->id"), $program->name) : $program->name;?> - createLink('project', 'index', "projectID=$program->id", '', '', $program->id), $program->name);?> + createLink('project', 'index', "projectID=$program->id", '', '', $program->id), $program->name, '', 'class="text-ellipsis text-primary"');?> + status != 'done' and $program->status != 'closed' and $program->status != 'suspended') + { + $delay = helper::diffDate(helper::today(), $program->end); + if($delay > 0) echo "{$lang->project->statusList['delay']}"; + } + ?> project->statusList, $program->status, '');?>