diff options
author | Frederic Guillot <fred@kanboard.net> | 2016-02-16 17:28:11 -0500 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2016-02-16 17:28:11 -0500 |
commit | 5bbc903dcab12dcf53abc40bf67c2cd7898e0420 (patch) | |
tree | 9dfe65b5837ca42c6a9352b738dcc381151fbb19 /app/Template/project_header/views.php | |
parent | 5272a7a980ed192a87d2319a51c8185670f62141 (diff) |
Start to implement a project overview page
Diffstat (limited to 'app/Template/project_header/views.php')
-rw-r--r-- | app/Template/project_header/views.php | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/app/Template/project_header/views.php b/app/Template/project_header/views.php index 1219a213..f8fdbb02 100644 --- a/app/Template/project_header/views.php +++ b/app/Template/project_header/views.php @@ -1,18 +1,22 @@ <ul class="views"> - <li <?= $filters['controller'] === 'board' ? 'class="active"' : '' ?>> + <li <?= $this->app->getRouterController() === 'ProjectOverview' ? 'class="active"' : '' ?>> + <i class="fa fa-eye fa-fw"></i> + <?= $this->url->link(t('Overview'), 'ProjectOverview', 'show', array('project_id' => $project['id']), false, 'view-overview', t('Keyboard shortcut: "%s"', 'v o')) ?> + </li> + <li <?= $this->app->getRouterController() === 'Board' ? 'class="active"' : '' ?>> <i class="fa fa-th fa-fw"></i> <?= $this->url->link(t('Board'), 'board', 'show', array('project_id' => $project['id'], 'search' => $filters['search']), false, 'view-board', t('Keyboard shortcut: "%s"', 'v b')) ?> </li> - <li <?= $filters['controller'] === 'calendar' ? 'class="active"' : '' ?>> + <li <?= $this->app->getRouterController() === 'Calendar' ? 'class="active"' : '' ?>> <i class="fa fa-calendar fa-fw"></i> <?= $this->url->link(t('Calendar'), 'calendar', 'show', array('project_id' => $project['id'], 'search' => $filters['search']), false, 'view-calendar', t('Keyboard shortcut: "%s"', 'v c')) ?> </li> - <li <?= $filters['controller'] === 'listing' ? 'class="active"' : '' ?>> + <li <?= $this->app->getRouterController() === 'Listing' ? 'class="active"' : '' ?>> <i class="fa fa-list fa-fw"></i> <?= $this->url->link(t('List'), 'listing', 'show', array('project_id' => $project['id'], 'search' => $filters['search']), false, 'view-listing', t('Keyboard shortcut: "%s"', 'v l')) ?> </li> <?php if ($this->user->hasProjectAccess('gantt', 'project', $project['id'])): ?> - <li <?= $filters['controller'] === 'gantt' ? 'class="active"' : '' ?>> + <li <?= $this->app->getRouterController() === 'Gantt' ? 'class="active"' : '' ?>> <i class="fa fa-sliders fa-fw"></i> <?= $this->url->link(t('Gantt'), 'gantt', 'project', array('project_id' => $project['id'], 'search' => $filters['search']), false, 'view-gantt', t('Keyboard shortcut: "%s"', 'v g')) ?> </li> |