2014-12-22 19:15:38 +01:00
|
|
|
<div class="sidebar">
|
2015-04-21 17:56:16 +02:00
|
|
|
<h2><?= t('Information') ?></h2>
|
2014-12-22 19:15:38 +01:00
|
|
|
<ul>
|
|
|
|
<li>
|
2015-08-16 17:04:56 +02:00
|
|
|
<?= $this->url->link(t('Summary'), 'task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?>
|
2014-12-22 19:15:38 +01:00
|
|
|
</li>
|
2015-04-21 17:56:16 +02:00
|
|
|
<li>
|
2015-08-16 17:04:56 +02:00
|
|
|
<?= $this->url->link(t('Activity stream'), 'activity', 'task', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?>
|
2015-04-21 17:56:16 +02:00
|
|
|
</li>
|
|
|
|
<li>
|
2015-08-16 17:04:56 +02:00
|
|
|
<?= $this->url->link(t('Transitions'), 'task', 'transitions', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<?= $this->url->link(t('Analytics'), 'task', 'analytics', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?>
|
2015-04-21 17:56:16 +02:00
|
|
|
</li>
|
2015-02-25 17:29:06 +01:00
|
|
|
<?php if ($task['time_estimated'] > 0 || $task['time_spent'] > 0): ?>
|
|
|
|
<li>
|
2015-08-16 17:04:56 +02:00
|
|
|
<?= $this->url->link(t('Time tracking'), 'task', 'timetracking', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?>
|
2015-02-25 17:29:06 +01:00
|
|
|
</li>
|
|
|
|
<?php endif ?>
|
2015-04-21 17:56:16 +02:00
|
|
|
</ul>
|
|
|
|
<h2><?= t('Actions') ?></h2>
|
|
|
|
<ul>
|
2014-12-22 19:15:38 +01:00
|
|
|
<li>
|
2015-08-16 17:04:56 +02:00
|
|
|
<?= $this->url->link(t('Edit the task'), 'taskmodification', 'edit', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<?= $this->url->link(t('Edit the description'), 'taskmodification', 'description', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<?= $this->url->link(t('Edit recurrence'), 'taskmodification', 'recurrence', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?>
|
2014-12-22 19:15:38 +01:00
|
|
|
</li>
|
|
|
|
<li>
|
2015-08-16 17:04:56 +02:00
|
|
|
<?= $this->url->link(t('Add a sub-task'), 'subtask', 'create', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?>
|
2014-12-22 19:15:38 +01:00
|
|
|
</li>
|
|
|
|
<li>
|
2015-08-16 17:04:56 +02:00
|
|
|
<?= $this->url->link(t('Add a link'), 'tasklink', 'create', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?>
|
2014-12-22 19:15:38 +01:00
|
|
|
</li>
|
2015-02-25 17:29:06 +01:00
|
|
|
<li>
|
2015-08-16 17:04:56 +02:00
|
|
|
<?= $this->url->link(t('Add a comment'), 'comment', 'create', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?>
|
2015-02-25 17:29:06 +01:00
|
|
|
</li>
|
2014-12-22 19:15:38 +01:00
|
|
|
<li>
|
2015-08-16 17:04:56 +02:00
|
|
|
<?= $this->url->link(t('Attach a document'), 'file', 'create', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?>
|
2014-12-22 19:15:38 +01:00
|
|
|
</li>
|
|
|
|
<li>
|
2015-08-16 17:04:56 +02:00
|
|
|
<?= $this->url->link(t('Add a screenshot'), 'file', 'screenshot', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?>
|
2014-12-22 19:15:38 +01:00
|
|
|
</li>
|
|
|
|
<li>
|
2015-08-16 17:04:56 +02:00
|
|
|
<?= $this->url->link(t('Duplicate'), 'taskduplication', 'duplicate', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?>
|
2014-12-22 19:15:38 +01:00
|
|
|
</li>
|
|
|
|
<li>
|
2015-08-16 17:04:56 +02:00
|
|
|
<?= $this->url->link(t('Duplicate to another project'), 'taskduplication', 'copy', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?>
|
2014-12-22 19:15:38 +01:00
|
|
|
</li>
|
|
|
|
<li>
|
2015-08-16 17:04:56 +02:00
|
|
|
<?= $this->url->link(t('Move to another project'), 'taskduplication', 'move', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?>
|
2014-12-22 19:15:38 +01:00
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<?php if ($task['is_active'] == 1): ?>
|
2015-08-16 17:04:56 +02:00
|
|
|
<?= $this->url->link(t('Close this task'), 'taskstatus', 'close', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?>
|
2014-12-22 19:15:38 +01:00
|
|
|
<?php else: ?>
|
2015-08-16 17:04:56 +02:00
|
|
|
<?= $this->url->link(t('Open this task'), 'taskstatus', 'open', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?>
|
2014-12-22 19:15:38 +01:00
|
|
|
<?php endif ?>
|
|
|
|
</li>
|
2015-08-16 17:04:56 +02:00
|
|
|
<?php if ($this->task->canRemove($task)): ?>
|
2014-12-22 19:15:38 +01:00
|
|
|
<li>
|
2015-08-16 17:04:56 +02:00
|
|
|
<?= $this->url->link(t('Remove'), 'task', 'remove', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?>
|
2014-12-22 19:15:38 +01:00
|
|
|
</li>
|
|
|
|
<?php endif ?>
|
|
|
|
</ul>
|
2015-08-16 17:04:56 +02:00
|
|
|
<div class="sidebar-collapse"><a href="#" title="<?= t('Hide sidebar') ?>"><i class="fa fa-chevron-left"></i></a></div>
|
|
|
|
<div class="sidebar-expand" style="display: none"><a href="#" title="<?= t('Expand sidebar') ?>"><i class="fa fa-chevron-right"></i></a></div>
|
|
|
|
</div>
|