From eeac2329baab1fdae7cbf6c707ed2ffd8beb4c1b Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sun, 24 May 2015 16:02:25 -0400 Subject: Helpers refactoring --- app/Template/event/comment_create.php | 6 +++--- app/Template/event/comment_update.php | 4 ++-- app/Template/event/events.php | 6 +++--- app/Template/event/subtask_create.php | 4 ++-- app/Template/event/subtask_update.php | 4 ++-- app/Template/event/task_assignee_change.php | 6 +++--- app/Template/event/task_close.php | 4 ++-- app/Template/event/task_create.php | 4 ++-- app/Template/event/task_move_column.php | 4 ++-- app/Template/event/task_move_position.php | 4 ++-- app/Template/event/task_open.php | 4 ++-- app/Template/event/task_update.php | 4 ++-- 12 files changed, 27 insertions(+), 27 deletions(-) (limited to 'app/Template/event') diff --git a/app/Template/event/comment_create.php b/app/Template/event/comment_create.php index 79238aba..462f15ca 100644 --- a/app/Template/event/comment_create.php +++ b/app/Template/event/comment_create.php @@ -1,12 +1,12 @@ -avatar($email, $author) ?> +user->avatar($email, $author) ?>

e($author), - $this->a(t('#%d', $task['id']), 'task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) + $this->url->link(t('#%d', $task['id']), 'task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ) ?>

e($task['title']) ?>
-
markdown($comment['comment']) ?>
+
text->markdown($comment['comment']) ?>
\ No newline at end of file diff --git a/app/Template/event/comment_update.php b/app/Template/event/comment_update.php index 5d22a2ce..0cb10bf6 100644 --- a/app/Template/event/comment_update.php +++ b/app/Template/event/comment_update.php @@ -1,9 +1,9 @@ -avatar($email, $author) ?> +user->avatar($email, $author) ?>

e($author), - $this->a(t('#%d', $task['id']), 'task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) + $this->url->link(t('#%d', $task['id']), 'task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ) ?>

diff --git a/app/Template/event/events.php b/app/Template/event/events.php index 93bc6584..2dc79871 100644 --- a/app/Template/event/events.php +++ b/app/Template/event/events.php @@ -5,11 +5,11 @@

- contains($event['event_name'], 'subtask')): ?> + text->contains($event['event_name'], 'subtask')): ?> - contains($event['event_name'], 'task')): ?> + text->contains($event['event_name'], 'task')): ?> - contains($event['event_name'], 'comment')): ?> + text->contains($event['event_name'], 'comment')): ?>   diff --git a/app/Template/event/subtask_create.php b/app/Template/event/subtask_create.php index 4f33069a..ca23aa9c 100644 --- a/app/Template/event/subtask_create.php +++ b/app/Template/event/subtask_create.php @@ -1,9 +1,9 @@ -avatar($email, $author) ?> +user->avatar($email, $author) ?>

e($author), - $this->a(t('#%d', $task['id']), 'task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) + $this->url->link(t('#%d', $task['id']), 'task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ) ?>

diff --git a/app/Template/event/subtask_update.php b/app/Template/event/subtask_update.php index 19fe2e56..11a778de 100644 --- a/app/Template/event/subtask_update.php +++ b/app/Template/event/subtask_update.php @@ -1,9 +1,9 @@ -avatar($email, $author) ?> +user->avatar($email, $author) ?>

e($author), - $this->a(t('#%d', $task['id']), 'task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) + $this->url->link(t('#%d', $task['id']), 'task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ) ?>

diff --git a/app/Template/event/task_assignee_change.php b/app/Template/event/task_assignee_change.php index 38e2bca7..cdec8743 100644 --- a/app/Template/event/task_assignee_change.php +++ b/app/Template/event/task_assignee_change.php @@ -1,4 +1,4 @@ -avatar($email, $author) ?> +user->avatar($email, $author) ?>

@@ -6,11 +6,11 @@ e($author), - $this->a(t('#%d', $task['id']), 'task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id'])), + $this->url->link(t('#%d', $task['id']), 'task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id'])), $this->e($assignee) ) ?> - e($author), $this->a(t('#%d', $task['id']), 'task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id']))) ?> + e($author), $this->url->link(t('#%d', $task['id']), 'task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id']))) ?>

diff --git a/app/Template/event/task_close.php b/app/Template/event/task_close.php index afedbef3..3d8670a6 100644 --- a/app/Template/event/task_close.php +++ b/app/Template/event/task_close.php @@ -1,9 +1,9 @@ -avatar($email, $author) ?> +user->avatar($email, $author) ?>

e($author), - $this->a(t('#%d', $task['id']), 'task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) + $this->url->link(t('#%d', $task['id']), 'task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ) ?>

diff --git a/app/Template/event/task_create.php b/app/Template/event/task_create.php index 4b920234..773f401c 100644 --- a/app/Template/event/task_create.php +++ b/app/Template/event/task_create.php @@ -1,9 +1,9 @@ -avatar($email, $author) ?> +user->avatar($email, $author) ?>

e($author), - $this->a(t('#%d', $task['id']), 'task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) + $this->url->link(t('#%d', $task['id']), 'task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ) ?>

diff --git a/app/Template/event/task_move_column.php b/app/Template/event/task_move_column.php index e97a3ab7..ca482e46 100644 --- a/app/Template/event/task_move_column.php +++ b/app/Template/event/task_move_column.php @@ -1,9 +1,9 @@ -avatar($email, $author) ?> +user->avatar($email, $author) ?>

e($author), - $this->a(t('#%d', $task['id']), 'task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id'])), + $this->url->link(t('#%d', $task['id']), 'task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id'])), $this->e($task['column_title']) ) ?>

diff --git a/app/Template/event/task_move_position.php b/app/Template/event/task_move_position.php index 2ed4ffe8..dcdd3e1b 100644 --- a/app/Template/event/task_move_position.php +++ b/app/Template/event/task_move_position.php @@ -1,9 +1,9 @@ -avatar($email, $author) ?> +user->avatar($email, $author) ?>

e($author), - $this->a(t('#%d', $task['id']), 'task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id'])), + $this->url->link(t('#%d', $task['id']), 'task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id'])), $task['position'], $this->e($task['column_title']) ) ?> diff --git a/app/Template/event/task_open.php b/app/Template/event/task_open.php index 9a408449..11fec64b 100644 --- a/app/Template/event/task_open.php +++ b/app/Template/event/task_open.php @@ -1,9 +1,9 @@ -avatar($email, $author) ?> +user->avatar($email, $author) ?>

e($author), - $this->a(t('#%d', $task['id']), 'task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) + $this->url->link(t('#%d', $task['id']), 'task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ) ?>

diff --git a/app/Template/event/task_update.php b/app/Template/event/task_update.php index 0f81870b..7d036d43 100644 --- a/app/Template/event/task_update.php +++ b/app/Template/event/task_update.php @@ -1,9 +1,9 @@ -avatar($email, $author) ?> +user->avatar($email, $author) ?>

e($author), - $this->a(t('#%d', $task['id']), 'task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) + $this->url->link(t('#%d', $task['id']), 'task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ) ?>

-- cgit v1.2.3