1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/kanboard_ynh.git synced 2024-09-03 19:36:17 +02:00
kanboard_ynh/sources/app/Template/task/sidebar.php

52 lines
2.6 KiB
PHP
Raw Normal View History

2014-12-22 19:15:38 +01:00
<div class="sidebar">
<h2><?= t('Actions') ?></h2>
<ul>
<li>
2015-01-16 14:23:05 +01:00
<?= $this->a(t('Summary'), 'task', 'show', 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
<?php if ($task['time_estimated'] > 0 || $task['time_spent'] > 0): ?>
<li>
<?= $this->a(t('Time tracking'), 'task', 'timesheet', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?>
</li>
<?php endif ?>
2014-12-22 19:15:38 +01:00
<li>
2015-01-16 14:23:05 +01:00
<?= $this->a(t('Edit the task'), 'task', 'edit', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?>
2014-12-22 19:15:38 +01:00
</li>
<li>
2015-01-16 14:23:05 +01:00
<?= $this->a(t('Edit the description'), 'task', 'description', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?>
2014-12-22 19:15:38 +01:00
</li>
<li>
2015-01-16 14:23:05 +01:00
<?= $this->a(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>
2015-02-25 17:29:06 +01:00
<li>
<?= $this->a(t('Add a link'), 'tasklink', 'create', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?>
</li>
2014-12-22 19:15:38 +01:00
<li>
2015-01-16 14:23:05 +01:00
<?= $this->a(t('Add a comment'), 'comment', 'create', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?>
2014-12-22 19:15:38 +01:00
</li>
<li>
2015-01-16 14:23:05 +01:00
<?= $this->a(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-01-16 14:23:05 +01:00
<?= $this->a(t('Duplicate'), 'task', 'duplicate', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?>
2014-12-22 19:15:38 +01:00
</li>
<li>
2015-01-16 14:23:05 +01:00
<?= $this->a(t('Duplicate to another project'), 'task', 'copy', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?>
2014-12-22 19:15:38 +01:00
</li>
<li>
2015-01-16 14:23:05 +01:00
<?= $this->a(t('Move to another project'), 'task', '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-01-16 14:23:05 +01:00
<?= $this->a(t('Close this task'), 'task', 'close', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?>
2014-12-22 19:15:38 +01:00
<?php else: ?>
2015-01-16 14:23:05 +01:00
<?= $this->a(t('Open this task'), 'task', 'open', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?>
2014-12-22 19:15:38 +01:00
<?php endif ?>
</li>
2015-01-16 14:23:05 +01:00
<?php if ($this->taskPermission->canRemoveTask($task)): ?>
2014-12-22 19:15:38 +01:00
<li>
2015-01-16 14:23:05 +01:00
<?= $this->a(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>
</div>