Remove method Category::getBoardCategories()

This commit is contained in:
Frederic Guillot
2015-07-01 20:55:21 -04:00
parent 471e46e702
commit 747b9434d3
11 changed files with 7 additions and 65 deletions

View File

@@ -9,8 +9,6 @@
<?= $this->render('board/show', array(
'project' => $project,
'swimlanes' => $swimlanes,
'categories_listing' => $categories_listing,
'categories_description' => $categories_description,
'board_private_refresh_interval' => $board_private_refresh_interval,
'board_highlight_period' => $board_highlight_period,
)) ?>

View File

@@ -3,8 +3,6 @@
<?= $this->render('board/show', array(
'project' => $project,
'swimlanes' => $swimlanes,
'categories_listing' => $categories_listing,
'categories_description' => $categories_description,
'board_private_refresh_interval' => $board_private_refresh_interval,
'board_highlight_period' => $board_highlight_period,
'not_editable' => true,

View File

@@ -21,8 +21,6 @@
'project' => $project,
'swimlane' => $swimlane,
'board_highlight_period' => $board_highlight_period,
'categories_listing' => $categories_listing,
'categories_description' => $categories_description,
'hide_swimlane' => count($swimlanes) === 1,
'not_editable' => isset($not_editable),
)) ?>

View File

@@ -74,8 +74,6 @@
<?= $this->render($not_editable ? 'board/task_public' : 'board/task_private', array(
'project' => $project,
'task' => $task,
'categories_listing' => $categories_listing,
'categories_description' => $categories_description,
'board_highlight_period' => $board_highlight_period,
'not_editable' => $not_editable,
)) ?>

View File

@@ -2,16 +2,16 @@
<div class="task-board-category-container">
<span class="task-board-category">
<?php if ($not_editable): ?>
<?= $this->text->in($task['category_id'], $categories_listing) ?>
<?= $this->e($task['category_name']) ?>
<?php else: ?>
<?= $this->url->link(
$this->text->in($task['category_id'], $categories_listing),
$this->e($task['category_name']),
'board',
'changeCategory',
array('task_id' => $task['id'], 'project_id' => $task['project_id']),
false,
'task-board-popover' . (isset($categories_description[$task['category_id']]) ? ' column-tooltip' : ''),
isset($categories_description[$task['category_id']]) ? $this->text->markdown($categories_description[$task['category_id']]) : t('Change category')
'task-board-popover' . (! empty($task['category_description']) ? ' column-tooltip' : ''),
! empty($task['category_description']) ? $this->text->markdown($task['category_description']) : t('Change category')
) ?>
<?php endif ?>
</span>

View File

@@ -42,8 +42,6 @@
<?= $this->render('board/task_footer', array(
'task' => $task,
'categories_listing' => $categories_listing,
'categories_description' => $categories_description,
'not_editable' => $not_editable,
)) ?>
</div>

View File

@@ -24,8 +24,6 @@
<?= $this->render('board/task_footer', array(
'task' => $task,
'categories_listing' => $categories_listing,
'categories_description' => $categories_description,
'not_editable' => $not_editable,
)) ?>
</div>

View File

@@ -16,7 +16,7 @@
<?= $this->url->link(t('Edit project'), 'project', 'edit', array('project_id' => $project['id'])) ?>
</li>
<li>
<?= $this->url->link(t('Edit board'), 'column', 'index', array('project_id' => $project['id'])) ?>
<?= $this->url->link(t('Columns'), 'column', 'index', array('project_id' => $project['id'])) ?>
</li>
<li>
<?= $this->url->link(t('Swimlanes'), 'swimlane', 'index', array('project_id' => $project['id'])) ?>