diff options
author | Frederic Guillot <fred@kanboard.net> | 2016-03-19 17:15:25 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2016-03-19 17:15:25 -0400 |
commit | 42376aec4ad78ad880d3e42219ccec07bf09339a (patch) | |
tree | 15fec841452fcf7534b8f373be4e2fc291ac9374 /app/Template/project_overview/attachments.php | |
parent | caf8cb3323e4ef9af2f76b639785d083540d4687 (diff) |
Improve project overview page
Diffstat (limited to 'app/Template/project_overview/attachments.php')
-rw-r--r-- | app/Template/project_overview/attachments.php | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/app/Template/project_overview/attachments.php b/app/Template/project_overview/attachments.php new file mode 100644 index 00000000..eb0c5be7 --- /dev/null +++ b/app/Template/project_overview/attachments.php @@ -0,0 +1,16 @@ +<section class="accordion-section <?= empty($files) && empty($images) ? 'accordion-collapsed' : '' ?>"> + <div class="accordion-title"> + <h3><a href="#" class="fa accordion-toggle"></a> <?= t('Attachments') ?></h3> + </div> + <div class="accordion-content"> + <?php if ($this->user->hasProjectAccess('ProjectFile', 'create', $project['id'])): ?> + <p style="margin-bottom: 15px;"> + <i class="fa fa-plus fa-fw"></i> + <?= $this->url->link(t('Upload a file'), 'ProjectFile', 'create', array('project_id' => $project['id']), false, 'popover') ?> + </p> + <?php endif ?> + + <?= $this->render('project_overview/images', array('project' => $project, 'images' => $images)) ?> + <?= $this->render('project_overview/files', array('project' => $project, 'files' => $files)) ?> + </div> +</section> |