diff options
author | Frederic Guillot <fred@kanboard.net> | 2017-10-18 13:56:57 -0700 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2017-10-18 13:56:57 -0700 |
commit | bd695ae98533e948c1ecdebc6a3837f688a7732c (patch) | |
tree | 943e04c24e923360c2b2d1fe3fe6944ce2c8b0f2 /app/Helper | |
parent | 06ebe07ddd919c7cf5eb55c04f2d056ce7ef0432 (diff) |
Improve external task integration
Diffstat (limited to 'app/Helper')
-rw-r--r-- | app/Helper/TaskHelper.php | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/app/Helper/TaskHelper.php b/app/Helper/TaskHelper.php index 065ece10..b105eaec 100644 --- a/app/Helper/TaskHelper.php +++ b/app/Helper/TaskHelper.php @@ -244,34 +244,6 @@ class TaskHelper extends Base return $this->taskModel->getProgress($task, $this->columns[$task['project_id']]); } - public function getNewTaskDropdown($projectId, $swimlaneId, $columnId) - { - $providers = $this->externalTaskManager->getProvidersList(); - - if (empty($providers)) { - return ''; - } - - $html = '<small class="pull-right"><div class="dropdown">'; - $html .= '<a href="#" class="dropdown-menu"><i class="fa fa-cloud-download" aria-hidden="true"></i> <i class="fa fa-caret-down"></i></a><ul>'; - - foreach ($providers as $providerName) { - $link = $this->helper->url->link( - t('New External Task: %s', $providerName), - 'ExternalTaskCreationController', - 'step1', - array('project_id' => $projectId, 'swimlane_id' => $swimlaneId, 'column_id' => $columnId, 'provider_name' => $providerName), - false, - 'js-modal-replace' - ); - - $html .= '<li><i class="fa fa-fw fa-plus-square" aria-hidden="true"></i> '.$link.'</li>'; - } - - $html .= '</ul></div></small>'; - return $html; - } - public function getNewBoardTaskButton(array $swimlane, array $column) { $html = '<div class="board-add-icon">'; |