diff --git a/ChangeLog b/ChangeLog
index a93f3f660..8c92877ab 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -4,6 +4,7 @@ Version 1.0.29 (unreleased)
New features:
* Add tasks in bulk from the board
+* Add dropdown for projects
Version 1.0.28
diff --git a/app/Template/app/projects.php b/app/Template/app/projects.php
index 733a108d6..c0110b077 100644
--- a/app/Template/app/projects.php
+++ b/app/Template/app/projects.php
@@ -14,7 +14,7 @@
getCollection() as $project): ?>
|
- = $this->url->link('#'.$project['id'], 'board', 'show', array('project_id' => $project['id']), false, 'dashboard-table-link') ?>
+ = $this->render('project/dropdown', array('project' => $project)) ?>
|
diff --git a/app/Template/project/dropdown.php b/app/Template/project/dropdown.php
index 980f9a44f..843574fe2 100644
--- a/app/Template/project/dropdown.php
+++ b/app/Template/project/dropdown.php
@@ -1,40 +1,44 @@
-
-
- = $this->url->link(t('Activity'), 'activity', 'project', array('project_id' => $project['id'])) ?>
-
+
+
+
+ -
+
+ = $this->url->link(t('Board'), 'board', 'show', array('project_id' => $project['id'])) ?>
+
+ -
+
+ = $this->url->link(t('Calendar'), 'calendar', 'show', array('project_id' => $project['id'])) ?>
+
+ -
+
+ = $this->url->link(t('Listing'), 'listing', 'show', array('project_id' => $project['id'])) ?>
+
+ user->hasProjectAccess('Gantt', 'project', $project['id'])): ?>
+ -
+
+ = $this->url->link(t('Gantt'), 'gantt', 'project', array('project_id' => $project['id'])) ?>
+
+
-user->hasProjectAccess('customfilter', 'index', $project['id'])): ?>
--
-
- = $this->url->link(t('Custom filters'), 'customfilter', 'index', array('project_id' => $project['id'])) ?>
-
-
+ -
+
+ = $this->url->link(t('Activity'), 'activity', 'project', array('project_id' => $project['id'])) ?>
+
-
--
- = $this->url->link(t('Public link'), 'board', 'readonly', array('token' => $project['token']), false, '', '', true) ?>
-
-
+ user->hasProjectAccess('analytic', 'tasks', $project['id'])): ?>
+ -
+
+ = $this->url->link(t('Analytics'), 'analytic', 'tasks', array('project_id' => $project['id'])) ?>
+
+
-= $this->hook->render('template:project:dropdown', array('project' => $project)) ?>
+ = $this->hook->render('template:project:dropdown', array('project' => $project)) ?>
-user->hasProjectAccess('analytic', 'tasks', $project['id'])): ?>
- -
-
- = $this->url->link(t('Analytics'), 'analytic', 'tasks', array('project_id' => $project['id'])) ?>
-
-
-
-user->hasProjectAccess('export', 'tasks', $project['id'])): ?>
- -
-
- = $this->url->link(t('Exports'), 'export', 'tasks', array('project_id' => $project['id'])) ?>
-
-
-
-user->hasProjectAccess('ProjectEdit', 'edit', $project['id'])): ?>
- -
-
- = $this->url->link(t('Settings'), 'project', 'show', array('project_id' => $project['id'])) ?>
-
-
+ user->hasProjectAccess('ProjectEdit', 'edit', $project['id'])): ?>
+ -
+
+ = $this->url->link(t('Settings'), 'project', 'show', array('project_id' => $project['id'])) ?>
+
+
+
+
diff --git a/app/Template/project/index.php b/app/Template/project/index.php
index e10467eb1..3edb05234 100644
--- a/app/Template/project/index.php
+++ b/app/Template/project/index.php
@@ -28,7 +28,7 @@
getCollection() as $project): ?>
|
|
- = $this->url->link('#'.$project['id'], 'board', 'show', array('project_id' => $project['id']), false, 'dashboard-table-link') ?>
+ = $this->render('project/dropdown', array('project' => $project)) ?>
|
@@ -38,9 +38,6 @@
|
- = $this->url->link('', 'board', 'show', array('project_id' => $project['id']), false, 'dashboard-table-link', t('Board')) ?>
- = $this->url->link('', 'gantt', 'project', array('project_id' => $project['id']), false, 'dashboard-table-link', t('Gantt chart')) ?>
-
@@ -54,7 +51,7 @@
- = $this->url->link($this->text->e($project['name']), 'project', 'show', array('project_id' => $project['id'])) ?>
+ = $this->url->link($this->text->e($project['name']), 'board', 'show', array('project_id' => $project['id'])) ?>
|
= $this->dt->date($project['start_date']) ?>
diff --git a/app/Template/project_header/dropdown.php b/app/Template/project_header/dropdown.php
index 759a51352..fdfcaf26d 100644
--- a/app/Template/project_header/dropdown.php
+++ b/app/Template/project_header/dropdown.php
@@ -29,6 +29,51 @@
- = $this->render('project/dropdown', array('project' => $project)) ?>
+
+
+
+ = $this->url->link(t('Activity'), 'activity', 'project', array('project_id' => $project['id'])) ?>
+
+
+ user->hasProjectAccess('customfilter', 'index', $project['id'])): ?>
+
+
+ = $this->url->link(t('Custom filters'), 'customfilter', 'index', array('project_id' => $project['id'])) ?>
+
+
+
+
+
+ = $this->url->link(t('Public link'), 'board', 'readonly', array('token' => $project['token']), false, '', '', true) ?>
+
+
+
+ = $this->hook->render('template:project:dropdown', array('project' => $project)) ?>
+
+ user->hasProjectAccess('analytic', 'tasks', $project['id'])): ?>
+
+
+ = $this->url->link(t('Analytics'), 'analytic', 'tasks', array('project_id' => $project['id'])) ?>
+
+
+
+ user->hasProjectAccess('export', 'tasks', $project['id'])): ?>
+
+
+ = $this->url->link(t('Exports'), 'export', 'tasks', array('project_id' => $project['id'])) ?>
+
+
+
+ user->hasProjectAccess('ProjectEdit', 'edit', $project['id'])): ?>
+
+
+ = $this->url->link(t('Settings'), 'project', 'show', array('project_id' => $project['id'])) ?>
+
+
+
+
+
+ = $this->url->link(t('Manage projects'), 'project', 'index') ?>
+
-
\ No newline at end of file
+
|