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/show.php | 48 ++++++++++++++++++++++++------------------- 1 file changed, 27 insertions(+), 21 deletions(-) (limited to 'app/Template/comment/show.php') 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 @@
-

- user->avatar($comment['user_id'], $comment['username'], $comment['name'], $comment['email']) ?> + user->avatar($comment['user_id'], $comment['username'], $comment['name'], $comment['email']) ?> +

- text->e($comment['name'] ?: $comment['username']) ?> @ + text->e($comment['name'] ?: $comment['username']) ?> dt->datetime($comment['date_creation']) ?> -

-
- - -
    -
  • - user->isAdmin() || $this->user->isCurrentUser($comment['user_id']))): ?> -
  • - url->link(t('remove'), 'comment', 'confirm', array('task_id' => $task['id'], 'project_id' => $task['project_id'], 'comment_id' => $comment['id']), false, 'popover') ?> -
  • -
  • - url->link(t('edit'), 'comment', 'edit', array('task_id' => $task['id'], 'project_id' => $task['project_id'], 'comment_id' => $comment['id']), false, 'popover') ?> -
  • - -
- +
+
text->markdown( @@ -50,6 +36,26 @@ ) ?>
-
-
\ No newline at end of file + + +
+
    +
  • + + +
  • + user->isAdmin() || $this->user->isCurrentUser($comment['user_id']))): ?> +
  • + + url->link(t('remove'), 'comment', 'confirm', array('task_id' => $task['id'], 'project_id' => $task['project_id'], 'comment_id' => $comment['id']), false, 'popover') ?> +
  • +
  • + + url->link(t('edit'), 'comment', 'edit', array('task_id' => $task['id'], 'project_id' => $task['project_id'], 'comment_id' => $comment['id']), false, 'popover') ?> +
  • + +
+
+ +
-- cgit v1.2.3