diff --git a/module/kanban/css/view.css b/module/kanban/css/view.css index 86e42e3574..aacdee8ede 100644 --- a/module/kanban/css/view.css +++ b/module/kanban/css/view.css @@ -74,3 +74,8 @@ body {background-color: #fff} .region .kanban-item.has-color .info > .label-light {color: #FFFFFF;} .region .kanban-item.has-color .info > .label-pri {border-color: #FFFFFF;} .region .kanban-item .item-more {position: absolute; right: 6px; top: 0px;} + +.kanban-col[data-type=ADD] {display: none;} +.kanban-col[data-type=EMPTY] {display: none;} +.kanban-item:hover .title {padding-right: 10px;} +.gray .actions {display:none;} diff --git a/module/kanban/model.php b/module/kanban/model.php index d1de6d6e51..cee5d5ce55 100644 --- a/module/kanban/model.php +++ b/module/kanban/model.php @@ -228,6 +228,13 @@ class kanbanModel extends model return $this->dao->findByID($kanbanID)->from(TABLE_KANBAN)->fetch(); } + /** + * Get kanban data. + * + * @param int $kanbanID + * @access public + * @return void + */ public function getKanbanData($kanbanID) { $kanbanData = array(); @@ -277,7 +284,7 @@ class kanbanModel extends model * * @param int $kanbanID * @access public - * @return void + * @return array */ public function getRegionPairs($kanbanID) { @@ -352,12 +359,14 @@ class kanbanModel extends model $actions = array('createColumn', 'copyColumn', 'editColumn', 'splitColumn', 'setWIP', 'archiveColumn', 'restoreColumn', 'deleteColumn'); + /* Group by parent. */ $parentColumnGroup = array(); foreach($columnGroup as $group => $columns) { foreach($columns as $column) { $column->actions = array(); + /* Judge column action priv. */ foreach($actions as $action) { if($this->isClickable($column, $action)) $column->actions[] = $action; diff --git a/module/kanban/view/view.html.php b/module/kanban/view/view.html.php index d08ee0bbf9..b0f35a4046 100644 --- a/module/kanban/view/view.html.php +++ b/module/kanban/view/view.html.php @@ -1,14 +1,5 @@ - - - + +