diff options
Diffstat (limited to 'app/Template/projectinfo')
-rw-r--r-- | app/Template/projectinfo/activity.php | 30 | ||||
-rw-r--r-- | app/Template/projectinfo/search.php | 43 | ||||
-rw-r--r-- | app/Template/projectinfo/tasks.php | 33 |
3 files changed, 106 insertions, 0 deletions
diff --git a/app/Template/projectinfo/activity.php b/app/Template/projectinfo/activity.php new file mode 100644 index 00000000..528cdbee --- /dev/null +++ b/app/Template/projectinfo/activity.php @@ -0,0 +1,30 @@ +<section id="main"> + <div class="page-header"> + <ul> + <li> + <span class="dropdown"> + <span> + <i class="fa fa-caret-down"></i> <a href="#" class="dropdown-menu"><?= t('Actions') ?></a> + <ul> + <?= $this->render('project/dropdown', array('project' => $project)) ?> + </ul> + </span> + </span> + </li> + <li> + <i class="fa fa-table fa-fw"></i> + <?= $this->url->link(t('Back to the board'), 'board', 'show', array('project_id' => $project['id'])) ?> + </li> + <li> + <i class="fa fa-folder fa-fw"></i> + <?= $this->url->link(t('All projects'), 'project', 'index') ?> + </li> + <?php if ($project['is_public']): ?> + <li><i class="fa fa-rss-square fa-fw"></i><?= $this->url->link(t('RSS feed'), 'project', 'feed', array('token' => $project['token']), false, '', '', true) ?></li> + <li><i class="fa fa-calendar fa-fw"></i><?= $this->url->link(t('iCal feed'), 'ical', 'project', array('token' => $project['token'])) ?></li> + <?php endif ?> + </ul> + </div> + + <?= $this->render('event/events', array('events' => $events)) ?> +</section>
\ No newline at end of file diff --git a/app/Template/projectinfo/search.php b/app/Template/projectinfo/search.php new file mode 100644 index 00000000..4b7c8f70 --- /dev/null +++ b/app/Template/projectinfo/search.php @@ -0,0 +1,43 @@ +<section id="main"> + <div class="page-header"> + <ul> + <li> + <span class="dropdown"> + <span> + <i class="fa fa-caret-down"></i> <a href="#" class="dropdown-menu"><?= t('Actions') ?></a> + <ul> + <?= $this->render('project/dropdown', array('project' => $project)) ?> + </ul> + </span> + </span> + </li> + <li> + <i class="fa fa-table fa-fw"></i> + <?= $this->url->link(t('Back to the board'), 'board', 'show', array('project_id' => $project['id'])) ?> + </li> + <li> + <i class="fa fa-folder fa-fw"></i> + <?= $this->url->link(t('All projects'), 'project', 'index') ?> + </li> + </ul> + </div> + + <form method="get" action="?" autocomplete="off"> + <?= $this->form->hidden('controller', $values) ?> + <?= $this->form->hidden('action', $values) ?> + <?= $this->form->hidden('project_id', $values) ?> + <?= $this->form->text('search', $values, array(), array('autofocus', 'required', 'placeholder="'.t('Search').'"'), 'form-input-large') ?> + <input type="submit" value="<?= t('Search') ?>" class="btn btn-blue"/> + </form> + + <?php if (! empty($values['search']) && $paginator->isEmpty()): ?> + <p class="alert"><?= t('Nothing found.') ?></p> + <?php elseif (! $paginator->isEmpty()): ?> + <?= $this->render('task/table', array( + 'paginator' => $paginator, + 'categories' => $categories, + 'columns' => $columns, + )) ?> + <?php endif ?> + +</section>
\ No newline at end of file diff --git a/app/Template/projectinfo/tasks.php b/app/Template/projectinfo/tasks.php new file mode 100644 index 00000000..41884783 --- /dev/null +++ b/app/Template/projectinfo/tasks.php @@ -0,0 +1,33 @@ +<section id="main"> + <div class="page-header"> + <ul> + <li> + <span class="dropdown"> + <span> + <i class="fa fa-caret-down"></i> <a href="#" class="dropdown-menu"><?= t('Actions') ?></a> + <ul> + <?= $this->render('project/dropdown', array('project' => $project)) ?> + </ul> + </span> + </span> + </li> + <li> + <i class="fa fa-table fa-fw"></i> + <?= $this->url->link(t('Back to the board'), 'board', 'show', array('project_id' => $project['id'])) ?> + </li> + <li> + <i class="fa fa-folder fa-fw"></i> + <?= $this->url->link(t('All projects'), 'project', 'index') ?> + </li> + </ul> + </div> + <?php if ($paginator->isEmpty()): ?> + <p class="alert"><?= t('There is no completed tasks at the moment.') ?></p> + <?php else: ?> + <?= $this->render('task/table', array( + 'paginator' => $paginator, + 'categories' => $categories, + 'columns' => $columns, + )) ?> + <?php endif ?> +</section>
\ No newline at end of file |