From 1ad57c74732e4463cfa5051e975c54f4e65d7e09 Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sat, 19 Mar 2016 18:04:22 -0400 Subject: Add buttons in project overview sections --- app/Template/project_overview/attachments.php | 7 +++---- app/Template/project_overview/description.php | 5 +++++ 2 files changed, 8 insertions(+), 4 deletions(-) (limited to 'app/Template/project_overview') 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 @@
user->hasProjectAccess('ProjectFile', 'create', $project['id'])): ?> -

- - url->link(t('Upload a file'), 'ProjectFile', 'create', array('project_id' => $project['id']), false, 'popover') ?> -

+
+ url->button('fa-plus', t('Upload a file'), 'ProjectFile', 'create', array('project_id' => $project['id']), 'popover') ?> +
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 @@

+ user->hasProjectAccess('ProjectEdit', 'description', $project['id'])): ?> +
+ url->button('fa-edit', t('Edit Description'), 'ProjectEdit', 'description', array('project_id' => $project['id']), 'popover') ?> +
+
text->markdown($project['description']) ?>
-- cgit v1.2.3