summaryrefslogtreecommitdiff
path: root/app/Template/project/show.php
diff options
context:
space:
mode:
authorashbike <helloashbike@gmail.com>2015-02-09 21:30:08 +0530
committerFrederic Guillot <fred@kanboard.net>2015-02-09 21:14:53 -0500
commit77a307e4ff8cfb4afcd34990b147f0ad38dfc558 (patch)
tree8d975fdece45597c8d8ad6bdd5ceea80c14ca842 /app/Template/project/show.php
parent6fbcbfb001bbd972f2f958d591f4586d2a2ea468 (diff)
- Markdown supported in column description.
- Project > Edit Board and Project Summary pages now show description as tooltip. - Project > Edit Board shows textarea with markdown preview. Edit column also shows markdown preview. - Fixed bug while adding a new column inserts description as column limit.
Diffstat (limited to 'app/Template/project/show.php')
-rw-r--r--app/Template/project/show.php11
1 files changed, 7 insertions, 4 deletions
diff --git a/app/Template/project/show.php b/app/Template/project/show.php
index 486be643..888eea2a 100644
--- a/app/Template/project/show.php
+++ b/app/Template/project/show.php
@@ -41,15 +41,18 @@
</div>
<table class="table-stripped">
<tr>
- <th class="column-30"><?= t('Column') ?></th>
- <th><?= t('Description') ?></th>
+ <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->e($column['title']) ?></td>
- <td><?= $this->e($column['description']) ?></td>
+ <td><?= $this->e($column['title']) ?>
+ <?php if (! empty($column['description'])): ?>
+ <span class="column-tooltip" title="<?= $this->markdown($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>