Move dashboard menu for calendar and activity stream
This commit is contained in:
6
app/Template/calendar/project.php
Normal file
6
app/Template/calendar/project.php
Normal file
@@ -0,0 +1,6 @@
|
||||
<?= $this->projectHeader->render($project, 'CalendarController', 'show') ?>
|
||||
|
||||
<?= $this->calendar->render(
|
||||
$this->url->href('CalendarController', 'projectEvents', array('project_id' => $project['id'])),
|
||||
$this->url->href('CalendarController', 'save', array('project_id' => $project['id']))
|
||||
) ?>
|
||||
@@ -1,9 +0,0 @@
|
||||
<section id="main">
|
||||
<?= $this->projectHeader->render($project, 'CalendarController', 'show') ?>
|
||||
|
||||
<?= $this->calendar->render(
|
||||
$this->url->href('CalendarController', 'project', array('project_id' => $project['id'])),
|
||||
$this->url->href('CalendarController', 'save', array('project_id' => $project['id']))
|
||||
) ?>
|
||||
|
||||
</section>
|
||||
4
app/Template/calendar/user.php
Normal file
4
app/Template/calendar/user.php
Normal file
@@ -0,0 +1,4 @@
|
||||
<?= $this->calendar->render(
|
||||
$this->url->href('CalendarController', 'userEvents', array('user_id' => $user['id'])),
|
||||
$this->url->href('CalendarController', 'save')
|
||||
) ?>
|
||||
@@ -1,4 +0,0 @@
|
||||
<?= $this->calendar->render(
|
||||
$this->url->href('CalendarController', 'user', array('user_id' => $user['id'])),
|
||||
$this->url->href('CalendarController', 'save')
|
||||
) ?>
|
||||
@@ -12,10 +12,13 @@
|
||||
</li>
|
||||
<?php endif ?>
|
||||
<li>
|
||||
<?= $this->url->icon('search', t('Search'), 'SearchController', 'index') ?>
|
||||
<?= $this->url->icon('folder', t('Project management'), 'ProjectListController', 'show') ?>
|
||||
</li>
|
||||
<li>
|
||||
<?= $this->url->icon('folder', t('Project management'), 'ProjectListController', 'show') ?>
|
||||
<?= $this->modal->medium('dashboard', t('My activity stream'), 'ActivityController', 'user') ?>
|
||||
</li>
|
||||
<li>
|
||||
<?= $this->modal->medium('calendar', t('My calendar'), 'CalendarController', 'user') ?>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
@@ -12,12 +12,6 @@
|
||||
<li <?= $this->app->checkMenuSelection('DashboardController', 'subtasks') ?>>
|
||||
<?= $this->url->link(t('My subtasks'), 'DashboardController', 'subtasks', array('user_id' => $user['id'])) ?>
|
||||
</li>
|
||||
<li <?= $this->app->checkMenuSelection('DashboardController', 'calendar') ?>>
|
||||
<?= $this->url->link(t('My calendar'), 'DashboardController', 'calendar', array('user_id' => $user['id'])) ?>
|
||||
</li>
|
||||
<li <?= $this->app->checkMenuSelection('DashboardController', 'activity') ?>>
|
||||
<?= $this->url->link(t('My activity stream'), 'DashboardController', 'activity', array('user_id' => $user['id'])) ?>
|
||||
</li>
|
||||
<?= $this->hook->render('template:dashboard:sidebar', array('user' => $user)) ?>
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
<?= $this->url->icon('th', t('Board'), 'BoardViewController', 'show', array('project_id' => $project['id'], 'search' => $filters['search']), false, 'view-board', t('Keyboard shortcut: "%s"', 'v b')) ?>
|
||||
</li>
|
||||
<li <?= $this->app->checkMenuSelection('CalendarController') ?>>
|
||||
<?= $this->url->icon('calendar', t('Calendar'), 'CalendarController', 'show', array('project_id' => $project['id'], 'search' => $filters['search']), false, 'view-calendar', t('Keyboard shortcut: "%s"', 'v c')) ?>
|
||||
<?= $this->url->icon('calendar', t('Calendar'), 'CalendarController', 'project', array('project_id' => $project['id'], 'search' => $filters['search']), false, 'view-calendar', t('Keyboard shortcut: "%s"', 'v c')) ?>
|
||||
</li>
|
||||
<li <?= $this->app->checkMenuSelection('TaskListController') ?>>
|
||||
<?= $this->url->icon('list', t('List'), 'TaskListController', 'show', array('project_id' => $project['id'], 'search' => $filters['search']), false, 'view-listing', t('Keyboard shortcut: "%s"', 'v l')) ?>
|
||||
|
||||
Reference in New Issue
Block a user