summaryrefslogtreecommitdiff
path: root/app/Template
diff options
context:
space:
mode:
Diffstat (limited to 'app/Template')
-rw-r--r--app/Template/app/dashboard.php2
-rw-r--r--app/Template/project/activity.php (renamed from app/Template/project_activity.php)2
-rw-r--r--app/Template/project/disable.php (renamed from app/Template/project_disable.php)0
-rw-r--r--app/Template/project/duplicate.php (renamed from app/Template/project_duplicate.php)0
-rw-r--r--app/Template/project/edit.php (renamed from app/Template/project_edit.php)0
-rw-r--r--app/Template/project/enable.php (renamed from app/Template/project_enable.php)0
-rw-r--r--app/Template/project/events.php (renamed from app/Template/project_events.php)0
-rw-r--r--app/Template/project/feed.php (renamed from app/Template/project_feed.php)0
-rw-r--r--app/Template/project/index.php (renamed from app/Template/project_index.php)0
-rw-r--r--app/Template/project/layout.php (renamed from app/Template/project_layout.php)2
-rw-r--r--app/Template/project/new.php (renamed from app/Template/project_new.php)0
-rw-r--r--app/Template/project/remove.php (renamed from app/Template/project_remove.php)0
-rw-r--r--app/Template/project/search.php (renamed from app/Template/project_search.php)0
-rw-r--r--app/Template/project/share.php (renamed from app/Template/project_share.php)0
-rw-r--r--app/Template/project/show.php (renamed from app/Template/project_show.php)0
-rw-r--r--app/Template/project/sidebar.php56
-rw-r--r--app/Template/project/tasks.php (renamed from app/Template/project_tasks.php)0
-rw-r--r--app/Template/project/users.php (renamed from app/Template/project_users.php)2
-rw-r--r--app/Template/project_sidebar.php56
-rw-r--r--app/Template/task_public.php2
20 files changed, 62 insertions, 60 deletions
diff --git a/app/Template/app/dashboard.php b/app/Template/app/dashboard.php
index 9bcd69f6..22b77eaa 100644
--- a/app/Template/app/dashboard.php
+++ b/app/Template/app/dashboard.php
@@ -20,7 +20,7 @@
</div>
<div class="dashboard-right-column">
<h2><?= t('Activity stream') ?></h2>
- <?= Helper\template('project_events', array('events' => $events)) ?>
+ <?= Helper\template('project/events', array('events' => $events)) ?>
</div>
</section>
</section> \ No newline at end of file
diff --git a/app/Template/project_activity.php b/app/Template/project/activity.php
index d60dfb8f..cdc25df8 100644
--- a/app/Template/project_activity.php
+++ b/app/Template/project/activity.php
@@ -11,6 +11,6 @@
<p class="pull-right"><i class="fa fa-rss-square"></i> <?= Helper\a(t('RSS feed'), 'project', 'feed', array('token' => $project['token'])) ?></p>
<?php endif ?>
- <?= Helper\template('project_events', array('events' => $events)) ?>
+ <?= Helper\template('project/events', array('events' => $events)) ?>
</section>
</section> \ No newline at end of file
diff --git a/app/Template/project_disable.php b/app/Template/project/disable.php
index 7a729fa3..7a729fa3 100644
--- a/app/Template/project_disable.php
+++ b/app/Template/project/disable.php
diff --git a/app/Template/project_duplicate.php b/app/Template/project/duplicate.php
index a926dcd1..a926dcd1 100644
--- a/app/Template/project_duplicate.php
+++ b/app/Template/project/duplicate.php
diff --git a/app/Template/project_edit.php b/app/Template/project/edit.php
index 8eb2110d..8eb2110d 100644
--- a/app/Template/project_edit.php
+++ b/app/Template/project/edit.php
diff --git a/app/Template/project_enable.php b/app/Template/project/enable.php
index f2a1b0e7..f2a1b0e7 100644
--- a/app/Template/project_enable.php
+++ b/app/Template/project/enable.php
diff --git a/app/Template/project_events.php b/app/Template/project/events.php
index 1b606414..1b606414 100644
--- a/app/Template/project_events.php
+++ b/app/Template/project/events.php
diff --git a/app/Template/project_feed.php b/app/Template/project/feed.php
index 9d10ecb1..9d10ecb1 100644
--- a/app/Template/project_feed.php
+++ b/app/Template/project/feed.php
diff --git a/app/Template/project_index.php b/app/Template/project/index.php
index 6c04449e..6c04449e 100644
--- a/app/Template/project_index.php
+++ b/app/Template/project/index.php
diff --git a/app/Template/project_layout.php b/app/Template/project/layout.php
index 3608df58..27a93021 100644
--- a/app/Template/project_layout.php
+++ b/app/Template/project/layout.php
@@ -7,7 +7,7 @@
</div>
<section class="sidebar-container" id="project-section">
- <?= Helper\template('project_sidebar', array('project' => $project)) ?>
+ <?= Helper\template('project/sidebar', array('project' => $project)) ?>
<div class="sidebar-content">
<?= $project_content_for_layout ?>
diff --git a/app/Template/project_new.php b/app/Template/project/new.php
index f3926a65..f3926a65 100644
--- a/app/Template/project_new.php
+++ b/app/Template/project/new.php
diff --git a/app/Template/project_remove.php b/app/Template/project/remove.php
index a98f94eb..a98f94eb 100644
--- a/app/Template/project_remove.php
+++ b/app/Template/project/remove.php
diff --git a/app/Template/project_search.php b/app/Template/project/search.php
index 11e207d2..11e207d2 100644
--- a/app/Template/project_search.php
+++ b/app/Template/project/search.php
diff --git a/app/Template/project_share.php b/app/Template/project/share.php
index 8edcbbc0..8edcbbc0 100644
--- a/app/Template/project_share.php
+++ b/app/Template/project/share.php
diff --git a/app/Template/project_show.php b/app/Template/project/show.php
index 907d1b70..907d1b70 100644
--- a/app/Template/project_show.php
+++ b/app/Template/project/show.php
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
diff --git a/app/Template/project_tasks.php b/app/Template/project/tasks.php
index 638e4c31..638e4c31 100644
--- a/app/Template/project_tasks.php
+++ b/app/Template/project/tasks.php
diff --git a/app/Template/project_users.php b/app/Template/project/users.php
index 1e1f259f..0908533f 100644
--- a/app/Template/project_users.php
+++ b/app/Template/project/users.php
@@ -26,6 +26,7 @@
<?php endif ?>
<?php if ($project['is_private'] == 0 && ! empty($users['not_allowed'])): ?>
+ <hr/>
<form method="post" action="<?= Helper\u('project', 'allow', array('project_id' => $project['id'])) ?>" autocomplete="off">
<?= Helper\form_csrf() ?>
@@ -44,6 +45,7 @@
<?php endif ?>
<?php if ($project['is_private'] == 0): ?>
+<hr/>
<form method="post" action="<?= Helper\u('project', 'allowEverybody', array('project_id' => $project['id'])) ?>">
<?= Helper\form_csrf() ?>
diff --git a/app/Template/project_sidebar.php b/app/Template/project_sidebar.php
deleted file mode 100644
index bd56edaf..00000000
--- a/app/Template/project_sidebar.php
+++ /dev/null
@@ -1,56 +0,0 @@
-<div class="sidebar">
- <h2><?= t('Actions') ?></h2>
- <ul>
- <li>
- <a href="?controller=project&amp;action=show&amp;project_id=<?= $project['id'] ?>"><?= t('Summary') ?></a>
- </li>
-
- <?php if (Helper\is_admin() || $project['is_private']): ?>
- <li>
- <a href="?controller=project&amp;action=share&amp;project_id=<?= $project['id'] ?>"><?= t('Public access') ?></a>
- </li>
- <li>
- <a href="?controller=project&amp;action=edit&amp;project_id=<?= $project['id'] ?>"><?= t('Edit project') ?></a>
- </li>
- <li>
- <a href="?controller=board&amp;action=edit&amp;project_id=<?= $project['id'] ?>"><?= t('Edit board') ?></a>
- </li>
- <li>
- <a href="?controller=category&amp;action=index&amp;project_id=<?= $project['id'] ?>"><?= t('Category management') ?></a>
- </li>
- <?php if (Helper\is_admin()): ?>
- <li>
- <a href="?controller=project&amp;action=users&amp;project_id=<?= $project['id'] ?>"><?= t('User management') ?></a>
- </li>
- <?php endif ?>
- <li>
- <a href="?controller=action&amp;action=index&amp;project_id=<?= $project['id'] ?>"><?= t('Automatic actions') ?></a>
- </li>
- <li>
- <a href="?controller=project&amp;action=duplicate&amp;project_id=<?= $project['id'].Helper\param_csrf() ?>"><?= t('Duplicate') ?></a>
- </li>
- <li>
- <?php if ($project['is_active']): ?>
- <a href="?controller=project&amp;action=disable&amp;project_id=<?= $project['id'].Helper\param_csrf() ?>"><?= t('Disable') ?></a>
- <?php else: ?>
- <a href="?controller=project&amp;action=enable&amp;project_id=<?= $project['id'].Helper\param_csrf() ?>"><?= t('Enable') ?></a>
- <?php endif ?>
- </li>
- <li>
- <a href="?controller=project&amp;action=remove&amp;project_id=<?= $project['id'] ?>"><?= t('Remove') ?></a>
- </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
diff --git a/app/Template/task_public.php b/app/Template/task_public.php
index 13fef1ed..370204ce 100644
--- a/app/Template/task_public.php
+++ b/app/Template/task_public.php
@@ -10,7 +10,7 @@
'is_public' => true
)) ?>
- <?= Helper\template('subtask_show', array(
+ <?= Helper\template('subtask/show', array(
'task' => $task,
'subtasks' => $subtasks,
'not_editable' => true