diff --git a/Plugin.php b/Plugin.php
index 530eae4..8d350d1 100644
--- a/Plugin.php
+++ b/Plugin.php
@@ -10,7 +10,8 @@ class Plugin extends Base
public function initialize()
{
$this->template->hook->attach('template:user:integrations', 'StarredProjects:user/integrations');
- $this->template->setTemplateOverride('dashboard/overview', 'StarredProjects:dashboard/overview');
+ $this->template->hook->attach('template:dashboard:show:after-filter-box','StarredProjects:dashboard/starred-projects');
+ $this->template->hook->attach('template:dashboard:project:before-title','StarredProjects:dashboard/projects');
$this->template->setTemplateOverride('header/board_selector', 'StarredProjects:header/board_selector');
$this->hook->on('template:layout:js', array('template' => 'plugins/StarredProjects/assets/js/starred-projects.js'));
$this->hook->on('template:layout:css', array('template' => 'plugins/StarredProjects/assets/css/starred-projects.css'));
diff --git a/Template/dashboard/overview.php b/Template/dashboard/overview.php
deleted file mode 100644
index edba5db..0000000
--- a/Template/dashboard/overview.php
+++ /dev/null
@@ -1,142 +0,0 @@
-asset->js('plugins/StarredProjects/assets/js/starred-projects.js') ?>
-
-
-app->starredProjectsModel->findAllProjects($this->user->getId()); ?>
-
-
-
-
-
-
- user->hasProjectAccess('ProjectViewController', 'show', $project['id'])): ?>
- = $this->render('project/dropdown', array('project' => $project)) ?>
-
- = '#'.$project['id'] ?>
-
-
-
- app->starredProjectsModel->find($project['id'], $this->user->getId())): ?>
- ★
-
- ☆
-
-
-
-
- = $this->url->link($this->text->e($project['name']), 'BoardViewController', 'show', array('project_id' => $project['id'])) ?>
-
-
-
-
-
-
-
-
-
-
-
-isEmpty()): ?>
-
- = $this->render('project_list/header', array('paginator' => $project_paginator)) ?>
- getCollection() as $project): ?>
-
-
- user->hasProjectAccess('ProjectViewController', 'show', $project['id'])): ?>
- = $this->render('project/dropdown', array('project' => $project)) ?>
-
- = '#'.$project['id'] ?>
-
-
-
- app->starredProjectsModel->find($project['id'], $this->user->getId())): ?>
- ★
-
- ☆
-
-
-
-
- = $this->url->link($this->text->e($project['name']), 'BoardViewController', 'show', array('project_id' => $project['id'])) ?>
-
-
-
-
-
-
-
-
- = $column['nb_open_tasks'] ?>
- = $this->text->e($column['title']) ?>
-
-
-
-
-
-
- = $project_paginator ?>
-
-
-
- = t('There is nothing assigned to you.') ?>
-
-
- isEmpty()): ?>
-
-
-
- = $this->render('task_list/header', array(
- 'paginator' => $result['paginator'],
- )) ?>
-
- getCollection() as $task): ?>
-
- = $this->render('task_list/task_title', array(
- 'task' => $task,
- 'redirect' => 'dashboard',
- )) ?>
-
- = $this->render('task_list/task_details', array(
- 'task' => $task,
- )) ?>
-
- = $this->render('task_list/task_avatars', array(
- 'task' => $task,
- )) ?>
-
- = $this->render('task_list/task_icons', array(
- 'task' => $task,
- )) ?>
-
- = $this->render('task_list/task_subtasks', array(
- 'task' => $task,
- 'user_id' => $user['id'],
- )) ?>
-
- = $this->hook->render('template:dashboard:task:footer', array('task' => $task)) ?>
-
-
-
-
- = $result['paginator'] ?>
-
-
-
-
-= $this->hook->render('template:dashboard:show', array('user' => $user)) ?>
diff --git a/Template/dashboard/projects.php b/Template/dashboard/projects.php
new file mode 100644
index 0000000..972084e
--- /dev/null
+++ b/Template/dashboard/projects.php
@@ -0,0 +1,7 @@
+
+ app->starredProjectsModel->find($project['id'], $this->user->getId())): ?>
+ ★
+
+ ☆
+
+
diff --git a/Template/dashboard/starred-projects.php b/Template/dashboard/starred-projects.php
new file mode 100644
index 0000000..666ca9a
--- /dev/null
+++ b/Template/dashboard/starred-projects.php
@@ -0,0 +1,36 @@
+app->starredProjectsModel->findAllProjects($this->user->getId()); ?>
+
+
+
+
+
+
+ user->hasProjectAccess('ProjectViewController', 'show', $project['id'])): ?>
+ = $this->render('project/dropdown', array('project' => $project)) ?>
+
+ = '#'.$project['id'] ?>
+
+
+
+ app->starredProjectsModel->find($project['id'], $this->user->getId())): ?>
+ ★
+
+ ☆
+
+
+
+
+ = $this->url->link($this->text->e($project['name']), 'BoardViewController', 'show', array('project_id' => $project['id'])) ?>
+
+
+
+
+
+
+
+
+
+
diff --git a/Template/header/board_selector.php b/Template/header/board_selector.php
index 955b13e..518f7df 100644
--- a/Template/header/board_selector.php
+++ b/Template/header/board_selector.php
@@ -10,16 +10,4 @@
}
}
?>
-
-= $this->app->component('select-dropdown-autocomplete', array(
- 'name' => 'boardId',
- 'placeholder' => t('Display another project'),
- 'items' => $board_selector,
- 'redirect' => array(
- 'regex' => 'PROJECT_ID',
- 'url' => $this->url->to('BoardViewController', 'show', array('project_id' => 'PROJECT_ID')),
- ),
- 'onFocus' => array(
- 'board.selector.open',
- )
-)) ?>
+= $this->render('kanboard:header/board_selector', array('board_selector' => $board_selector)) ?>