From 344f585a325a77e86874d0deebe7cd927569bdb4 Mon Sep 17 00:00:00 2001
From: Frederic Guillot
Date: Sat, 19 Mar 2016 11:56:28 -0400
Subject: Improve comments design
---
app/Template/comment/remove.php | 6 +++++-
app/Template/comment/show.php | 48 +++++++++++++++++++++++------------------
2 files changed, 32 insertions(+), 22 deletions(-)
(limited to 'app/Template/comment')
diff --git a/app/Template/comment/remove.php b/app/Template/comment/remove.php
index 1b5004f4..3174df02 100644
--- a/app/Template/comment/remove.php
+++ b/app/Template/comment/remove.php
@@ -7,7 +7,11 @@
= t('Do you really want to remove this comment?') ?>
- = $this->render('comment/show', array('comment' => $comment, 'task' => $task, 'preview' => true)) ?>
+ = $this->render('comment/show', array(
+ 'comment' => $comment,
+ 'task' => $task,
+ 'hide_actions' => true
+ )) ?>
= $this->url->link(t('Yes'), 'comment', 'remove', array('task_id' => $task['id'], 'project_id' => $task['project_id'], 'comment_id' => $comment['id']), true, 'btn btn-red') ?>
diff --git a/app/Template/comment/show.php b/app/Template/comment/show.php
index c5963666..ebf4142b 100644
--- a/app/Template/comment/show.php
+++ b/app/Template/comment/show.php
@@ -1,30 +1,16 @@
--
cgit v1.2.3
-- = t('link') ?>
- user->isAdmin() || $this->user->isCurrentUser($comment['user_id']))): ?>
- -
- = $this->url->link(t('remove'), 'comment', 'confirm', array('task_id' => $task['id'], 'project_id' => $task['project_id'], 'comment_id' => $comment['id']), false, 'popover') ?>
-
- -
- = $this->url->link(t('edit'), 'comment', 'edit', array('task_id' => $task['id'], 'project_id' => $task['project_id'], 'comment_id' => $comment['id']), false, 'popover') ?>
-
-
-
- +