* Finish task #49280.

This commit is contained in:
zhangzilong
2022-02-24 09:30:52 +08:00
parent 60937d3a52
commit a9e3772439
2 changed files with 6 additions and 2 deletions

View File

@@ -19,8 +19,8 @@
#kanbanList .kanban-header {position: relative;}
#kanbanList .kanban-item.link-block {padding: 0;}
#kanbanList .kanban-item.link-block a {padding: 10px; display: block;}
#kanbanList .kanban-card {display: grid;}
#kanbanList .kanban-card > .title {white-space: nowrap; overflow: hidden; text-overflow: ellipsis;}
#kanbanList .kanban-card {display: flex;}
#kanbanList .kanban-card > .title {white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: calc(100% - 50px);}
#kanbanList .kanban-card.has-progress {padding-right: 40px; position: relative;}
#kanbanList .kanban-card.has-progress > .progress-pie,
#kanbanList .kanban-card.has-progress > .ring {position: absolute; right: 7px; top: 7px; width: 24px; height: 24px;}
@@ -179,6 +179,8 @@ function renderProjectItem(item, $item)
}
$title.text(item.name).attr('title', item.name);
if(item.delay) $title.after("&nbsp;<span class='label label-danger label-badge'>" + delayText + "</span>")
if(item.status === 'doing')
{
var $progress = $item.find('.ring');
@@ -191,6 +193,7 @@ function renderProjectItem(item, $item)
$progress.css('background-position-x', -Math.ceil(progress / 2) * 24);
$item.addClass('has-progress');
}
return $item.addClass('has-left-border')
.toggleClass('border-left-green', item.status === 'doing' && !item.delay)
.toggleClass('border-left-red', item.status === 'doing' && !!item.delay)

View File

@@ -44,6 +44,7 @@ js::set('kanbanGroup', $kanbanGroup);
js::set('latestExecutions', $latestExecutions);
js::set('programPairs', $programPairs);
js::set('doingText', $lang->project->statusList['doing']);
js::set('delayText', $lang->project->statusList['delay']);
js::set('priv',
array(
'canStart' => common::hasPriv('project', 'start'),