* Adjust kanban details.
This commit is contained in:
@@ -55,4 +55,4 @@ $config->action->majorList['execution'] = array('opened', 'edited');
|
||||
|
||||
$config->action->needGetProjectType = 'build,task,bug,case,testcase,caselib,testtask,testsuite,testreport,doc,issue,release,risk,design,opportunity,trainplan,gapanalysis,researchplan,researchreport,';
|
||||
$config->action->needGetRelateField = ',story,productplan,release,task,build,bug,case,testtask,testreport,doc,doclib,issue,risk,opportunity,trainplan,gapanalysis,team,whitelist,researchplan,researchreport,meeting,kanbanlane,kanbancolumn,';
|
||||
$config->action->noLinkModules = ',doclib,module,webhook,gitlab,pipeline,jenkins,kanbancolumn,kanbanlane,kanbanregion,kanbancard,';
|
||||
$config->action->noLinkModules = ',doclib,module,webhook,gitlab,pipeline,jenkins,kanbanspace,kanbancolumn,kanbanlane,kanbanregion,';
|
||||
|
||||
@@ -71,9 +71,9 @@
|
||||
{
|
||||
echo $action->objectName;
|
||||
}
|
||||
elseif(in_array($action->objectType, array('kanban', 'kanbanspace')))
|
||||
elseif($action->objectType == 'kanbancard')
|
||||
{
|
||||
echo html::a($this->createLink('kanban', 'space'), $action->objectName, '_self', "title={$action->objectName}");
|
||||
echo html::a($this->createLink('kanban', 'viewCard', "id=$action->objectID", '', true), $action->objectName, '', "title={$action->objectName} class='iframe'");
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -67,7 +67,6 @@
|
||||
.region .kanban-item > .kanban-card > .info > .user > span:after {content: ''; display: block; position: absolute; width: 2px; height: 2px; background-color: #8990a2; top: 0; border-radius: 50%}
|
||||
.region .kanban-item > .kanban-card > .info > .user > span:before {left: -4px;}
|
||||
.region .kanban-item > .kanban-card > .info > .user > span:after {right: -4px;}
|
||||
.region .kanban-item > .kanban-card > .info > .user > div {display: inline-block; height: 24px; position: relative; border-radius: 50%; top: -5px; margin: 5px;}
|
||||
.region .kanban-item > .kanban-card > .actions > a {display: block; float: left; width: 20px; height: 20px; line-height: 20px; text-align: center; border-radius: 4px; opacity: .7;}
|
||||
.region .kanban-item > .kanban-card > .actions > a:hover {background-color: rgba(0,0,0,.075); opacity: 1;}
|
||||
.region .kanban-item:hover > .actions {opacity: 1;}
|
||||
|
||||
@@ -207,7 +207,7 @@ function renderLaneName($lane, lane, $kanban, columns, kanban)
|
||||
function renderUsersAvatar(users, itemID, size)
|
||||
{
|
||||
var avatarSizeClass = 'avatar-' + (size || 'sm');
|
||||
var link = createLink('kanban', 'assigncard', 'id=' + itemID, '', true);
|
||||
//var link = createLink('kanban', 'assigncard', 'id=' + itemID, '', true);
|
||||
|
||||
if(users.length == 0 || (users.length == 1 && users[0] == ''))
|
||||
{
|
||||
@@ -226,14 +226,14 @@ function renderUsersAvatar(users, itemID, size)
|
||||
|
||||
if(!user)
|
||||
{
|
||||
assignees.push($('<a class="avatar has-text ' + avatarSizeClass + ' avatar-circle iframe" title="' + noAssigned + '" style="background: #ccc" href="' + link + '"><i class="icon icon-person"></i></a>'));
|
||||
assignees.push($('<div class="avatar has-text ' + avatarSizeClass + ' avatar-circle iframe" title="' + noAssigned + '" style="background: #ccc"><i class="icon icon-person"></i></div>'));
|
||||
continue;
|
||||
}
|
||||
|
||||
if(typeof user === 'string') user = {account: user};
|
||||
if(!user.avatar && window.userList && window.userList[user.account]) user = window.userList[user.account];
|
||||
|
||||
assignees.push($('<a class="avatar has-text ' + avatarSizeClass + ' avatar-circle iframe" href="' + link + '"/>').avatar({user: user}));
|
||||
assignees.push($('<div class="avatar has-text ' + avatarSizeClass + ' avatar-circle iframe"></div>').avatar({user: user}));
|
||||
}
|
||||
|
||||
if(assignees.length > 3) assignees.splice(3, assignees.length - 3, '<span>...</span>');
|
||||
|
||||
Reference in New Issue
Block a user