summaryrefslogtreecommitdiff
path: root/app/Template/project/show.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-05-25 22:28:09 -0400
committerFrederic Guillot <fred@kanboard.net>2016-05-25 22:28:09 -0400
commitff892c5d25e0bab560f005c788189d38c2bcab7b (patch)
tree72edfcffd52db61f9a7632f860b6d914445593ab /app/Template/project/show.php
parent872dc79dbd8b04424520e32675a6e0dcb6ed44bc (diff)
Split project controller into multiple classes
Diffstat (limited to 'app/Template/project/show.php')
-rw-r--r--app/Template/project/show.php85
1 files changed, 0 insertions, 85 deletions
diff --git a/app/Template/project/show.php b/app/Template/project/show.php
deleted file mode 100644
index 4aba4919..00000000
--- a/app/Template/project/show.php
+++ /dev/null
@@ -1,85 +0,0 @@
-<div class="page-header">
- <h2><?= t('Summary') ?></h2>
-</div>
-<ul class="listing">
- <li><strong><?= $project['is_active'] ? t('Active') : t('Inactive') ?></strong></li>
-
- <?php if ($project['owner_id'] > 0): ?>
- <li><?= t('Project owner: ') ?><strong><?= $this->text->e($project['owner_name'] ?: $project['owner_username']) ?></strong></li>
- <?php endif ?>
-
- <?php if ($project['is_private']): ?>
- <li><i class="fa fa-lock"></i> <?= t('This project is private') ?></li>
- <?php endif ?>
-
- <?php if ($project['is_public']): ?>
- <li><i class="fa fa-share-alt"></i> <?= $this->url->link(t('Public link'), 'board', 'readonly', array('token' => $project['token']), false, '', '', true) ?></li>
- <li><i class="fa fa-rss-square"></i> <?= $this->url->link(t('RSS feed'), 'feed', 'project', array('token' => $project['token']), false, '', '', true) ?></li>
- <li><i class="fa fa-calendar"></i> <?= $this->url->link(t('iCal feed'), 'ical', 'project', array('token' => $project['token'])) ?></li>
- <?php else: ?>
- <li><?= t('Public access disabled') ?></li>
- <?php endif ?>
-
- <?php if ($project['last_modified']): ?>
- <li><?= t('Modified:').' '.$this->dt->datetime($project['last_modified']) ?></li>
- <?php endif ?>
-
- <?php if ($project['start_date']): ?>
- <li><?= t('Start date: ').$this->dt->date($project['start_date']) ?></li>
- <?php endif ?>
-
- <?php if ($project['end_date']): ?>
- <li><?= t('End date: ').$this->dt->date($project['end_date']) ?></li>
- <?php endif ?>
-
- <?php if ($stats['nb_tasks'] > 0): ?>
-
- <?php if ($stats['nb_active_tasks'] > 0): ?>
- <li><?= $this->url->link(t('%d tasks on the board', $stats['nb_active_tasks']), 'board', 'show', array('project_id' => $project['id'], 'search' => 'status:open')) ?></li>
- <?php endif ?>
-
- <?php if ($stats['nb_inactive_tasks'] > 0): ?>
- <li><?= $this->url->link(t('%d closed tasks', $stats['nb_inactive_tasks']), 'listing', 'show', array('project_id' => $project['id'], 'search' => 'status:closed')) ?></li>
- <?php endif ?>
-
- <li><?= t('%d tasks in total', $stats['nb_tasks']) ?></li>
-
- <?php else: ?>
- <li><?= t('No task for this project') ?></li>
- <?php endif ?>
-</ul>
-
-<div class="page-header">
- <h2><?= t('Board') ?></h2>
-</div>
-<table class="table-stripped">
- <tr>
- <th class="column-60"><?= t('Column') ?></th>
- <th class="column-20"><?= t('Task limit') ?></th>
- <th class="column-20"><?= t('Active tasks') ?></th>
- </tr>
- <?php foreach ($stats['columns'] as $column): ?>
- <tr>
- <td>
- <?= $this->text->e($column['title']) ?>
- <?php if (! empty($column['description'])): ?>
- <span class="tooltip" title="<?= $this->text->markdownAttribute($column['description']) ?>">
- <i class="fa fa-info-circle"></i>
- </span>
- <?php endif ?>
- </td>
- <td><?= $column['task_limit'] ?: '∞' ?></td>
- <td><?= $column['nb_active_tasks'] ?></td>
- </tr>
- <?php endforeach ?>
-</table>
-
-<?php if (! empty($project['description'])): ?>
- <div class="page-header">
- <h2><?= t('Description') ?></h2>
- </div>
-
- <article class="markdown">
- <?= $this->text->markdown($project['description']) ?>
- </article>
-<?php endif ?>