summaryrefslogtreecommitdiff
path: root/app/Template/project_overview
diff options
context:
space:
mode:
Diffstat (limited to 'app/Template/project_overview')
-rw-r--r--app/Template/project_overview/attachments.php7
-rw-r--r--app/Template/project_overview/description.php5
2 files changed, 8 insertions, 4 deletions
diff --git a/app/Template/project_overview/attachments.php b/app/Template/project_overview/attachments.php
index eb0c5be7..eaabfd5f 100644
--- a/app/Template/project_overview/attachments.php
+++ b/app/Template/project_overview/attachments.php
@@ -4,10 +4,9 @@
</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>
+ <div class="buttons-header">
+ <?= $this->url->button('fa-plus', t('Upload a file'), 'ProjectFile', 'create', array('project_id' => $project['id']), 'popover') ?>
+ </div>
<?php endif ?>
<?= $this->render('project_overview/images', array('project' => $project, 'images' => $images)) ?>
diff --git a/app/Template/project_overview/description.php b/app/Template/project_overview/description.php
index c89cb710..9895aede 100644
--- a/app/Template/project_overview/description.php
+++ b/app/Template/project_overview/description.php
@@ -3,6 +3,11 @@
<h3><a href="#" class="fa accordion-toggle"></a> <?= t('Description') ?></h3>
</div>
<div class="accordion-content">
+ <?php if ($this->user->hasProjectAccess('ProjectEdit', 'description', $project['id'])): ?>
+ <div class="buttons-header">
+ <?= $this->url->button('fa-edit', t('Edit Description'), 'ProjectEdit', 'description', array('project_id' => $project['id']), 'popover') ?>
+ </div>
+ <?php endif ?>
<article class="markdown">
<?= $this->text->markdown($project['description']) ?>
</article>