summaryrefslogtreecommitdiff
path: root/app/Template/project_overview/description.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-03-19 17:15:25 -0400
committerFrederic Guillot <fred@kanboard.net>2016-03-19 17:15:25 -0400
commit42376aec4ad78ad880d3e42219ccec07bf09339a (patch)
tree15fec841452fcf7534b8f373be4e2fc291ac9374 /app/Template/project_overview/description.php
parentcaf8cb3323e4ef9af2f76b639785d083540d4687 (diff)
Improve project overview page
Diffstat (limited to 'app/Template/project_overview/description.php')
-rw-r--r--app/Template/project_overview/description.php16
1 files changed, 9 insertions, 7 deletions
diff --git a/app/Template/project_overview/description.php b/app/Template/project_overview/description.php
index cd6e2450..c89cb710 100644
--- a/app/Template/project_overview/description.php
+++ b/app/Template/project_overview/description.php
@@ -1,8 +1,10 @@
-<?php if (! empty($project['description'])): ?>
- <div class="page-header">
- <h2><?= $this->text->e($project['name']) ?></h2>
+<section class="accordion-section <?= empty($project['description']) ? 'accordion-collapsed' : '' ?>">
+ <div class="accordion-title">
+ <h3><a href="#" class="fa accordion-toggle"></a> <?= t('Description') ?></h3>
</div>
- <article class="markdown">
- <?= $this->text->markdown($project['description']) ?>
- </article>
-<?php endif ?>
+ <div class="accordion-content">
+ <article class="markdown">
+ <?= $this->text->markdown($project['description']) ?>
+ </article>
+ </div>
+</section>