summaryrefslogtreecommitdiff
path: root/app/Template/project/sidebar.php
diff options
context:
space:
mode:
authorFrédéric Guillot <fred@kanboard.net>2014-12-01 21:23:46 -0500
committerFrédéric Guillot <fred@kanboard.net>2014-12-01 21:23:46 -0500
commit50a9e2ba7db6a155cee75771d73c584d721cf687 (patch)
treecf985e7050b9293e2ec4b13d40689a4a0b10644f /app/Template/project/sidebar.php
parent67eae33fb88e840047a33558de56090d8bcc62fb (diff)
Move project templates to a subfolder
Diffstat (limited to 'app/Template/project/sidebar.php')
-rw-r--r--app/Template/project/sidebar.php56
1 files changed, 56 insertions, 0 deletions
diff --git a/app/Template/project/sidebar.php b/app/Template/project/sidebar.php
new file mode 100644
index 00000000..376a1427
--- /dev/null
+++ b/app/Template/project/sidebar.php
@@ -0,0 +1,56 @@
+<div class="sidebar">
+ <h2><?= t('Actions') ?></h2>
+ <ul>
+ <li>
+ <?= Helper\a(t('Summary'), 'project', 'show', array('project_id' => $project['id'])) ?>
+ </li>
+
+ <?php if (Helper\is_admin() || $project['is_private']): ?>
+ <li>
+ <?= Helper\a(t('Public access'), 'project', 'share', array('project_id' => $project['id'])) ?>
+ </li>
+ <li>
+ <?= Helper\a(t('Edit project'), 'project', 'edit', array('project_id' => $project['id'])) ?>
+ </li>
+ <li>
+ <?= Helper\a(t('Edit board'), 'board', 'edit', array('project_id' => $project['id'])) ?>
+ </li>
+ <li>
+ <?= Helper\a(t('Category management'), 'category', 'index', array('project_id' => $project['id'])) ?>
+ </li>
+ <?php if (Helper\is_admin()): ?>
+ <li>
+ <?= Helper\a(t('User management'), 'project', 'users', array('project_id' => $project['id'])) ?>
+ </li>
+ <?php endif ?>
+ <li>
+ <?= Helper\a(t('Automatic actions'), 'action', 'index', array('project_id' => $project['id'])) ?>
+ </li>
+ <li>
+ <?= Helper\a(t('Duplicate'), 'project', 'duplicate', array('project_id' => $project['id']), true) ?>
+ </li>
+ <li>
+ <?php if ($project['is_active']): ?>
+ <?= Helper\a(t('Disable'), 'project', 'disable', array('project_id' => $project['id']), true) ?>
+ <?php else: ?>
+ <?= Helper\a(t('Enable'), 'project', 'enable', array('project_id' => $project['id']), true) ?>
+ <?php endif ?>
+ </li>
+ <li>
+ <?= Helper\a(t('Remove'), 'project', 'remove', array('project_id' => $project['id'])) ?>
+ </li>
+ <?php endif ?>
+ </ul>
+
+ <?php if (Helper\is_admin() || $project['is_private']): ?>
+ <h2><?= t('Exports') ?></h2>
+ <ul>
+ <li>
+ <?= Helper\a(t('Tasks'), 'project', 'exportTasks', array('project_id' => $project['id'])) ?>
+ </li>
+ <li>
+ <?= Helper\a(t('Daily project summary'), 'project', 'exportDailyProjectSummary', array('project_id' => $project['id'])) ?>
+ </li>
+ </li>
+ <?php endif ?>
+</div> \ No newline at end of file