From cda7c0f997220e7c433df355e5653353a40663bf Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Tue, 6 Jan 2015 22:24:35 -0500 Subject: Change links in event templates --- app/Template/event/comment_create.php | 5 ++++- app/Template/event/comment_update.php | 5 ++++- app/Template/event/subtask_create.php | 5 ++++- app/Template/event/subtask_update.php | 5 ++++- app/Template/event/task_assignee_change.php | 8 +++----- app/Template/event/task_close.php | 5 ++++- app/Template/event/task_create.php | 5 ++++- app/Template/event/task_move_column.php | 6 +++++- app/Template/event/task_move_position.php | 7 ++++++- app/Template/event/task_open.php | 5 ++++- app/Template/event/task_update.php | 5 ++++- 11 files changed, 46 insertions(+), 15 deletions(-) (limited to 'app/Template/event') diff --git a/app/Template/event/comment_create.php b/app/Template/event/comment_create.php index ee985ed1..fd046fd1 100644 --- a/app/Template/event/comment_create.php +++ b/app/Template/event/comment_create.php @@ -1,5 +1,8 @@

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

e($task['title']) ?>
diff --git a/app/Template/event/comment_update.php b/app/Template/event/comment_update.php index 93418159..7149bacf 100644 --- a/app/Template/event/comment_update.php +++ b/app/Template/event/comment_update.php @@ -1,5 +1,8 @@

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

e($task['title']) ?>
diff --git a/app/Template/event/subtask_create.php b/app/Template/event/subtask_create.php index 3572031f..1cc7585c 100644 --- a/app/Template/event/subtask_create.php +++ b/app/Template/event/subtask_create.php @@ -1,5 +1,8 @@

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

e($task['title']) ?>

diff --git a/app/Template/event/subtask_update.php b/app/Template/event/subtask_update.php index 0adc8ff5..be06f7f5 100644 --- a/app/Template/event/subtask_update.php +++ b/app/Template/event/subtask_update.php @@ -1,5 +1,8 @@

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

e($task['title']) ?>

diff --git a/app/Template/event/task_assignee_change.php b/app/Template/event/task_assignee_change.php index e9815853..6eac412b 100644 --- a/app/Template/event/task_assignee_change.php +++ b/app/Template/event/task_assignee_change.php @@ -1,11 +1,9 @@

- #%d to %s', + e($author), - $task_id, - $task_id, + $this->a(t('#%d', $task['id']), 'task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id'])), $this->e($task['assignee_name'] ?: $task['assignee_username']) - ) ?> + ) ?>

e($task['title']) ?> diff --git a/app/Template/event/task_close.php b/app/Template/event/task_close.php index 6ab476bd..b5ad4d1d 100644 --- a/app/Template/event/task_close.php +++ b/app/Template/event/task_close.php @@ -1,5 +1,8 @@

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

e($task['title']) ?> diff --git a/app/Template/event/task_create.php b/app/Template/event/task_create.php index 36bd4713..de9a7e0d 100644 --- a/app/Template/event/task_create.php +++ b/app/Template/event/task_create.php @@ -1,5 +1,8 @@

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

e($task['title']) ?> diff --git a/app/Template/event/task_move_column.php b/app/Template/event/task_move_column.php index 9c5f54dd..e56e92d7 100644 --- a/app/Template/event/task_move_column.php +++ b/app/Template/event/task_move_column.php @@ -1,5 +1,9 @@

- #%d to the column "%s"', $this->e($author), $task_id, $task_id, $this->e($task['column_title'])) ?> + e($author), + $this->a(t('#%d', $task['id']), 'task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id'])), + $this->e($task['column_title']) + ) ?>

e($task['title']) ?> diff --git a/app/Template/event/task_move_position.php b/app/Template/event/task_move_position.php index 86e09953..412a9401 100644 --- a/app/Template/event/task_move_position.php +++ b/app/Template/event/task_move_position.php @@ -1,5 +1,10 @@

- #%d to the position #%d in the column "%s"', $this->e($author), $task_id, $task_id, $task['position'], $this->e($task['column_title'])) ?> + e($author), + $this->a(t('#%d', $task['id']), 'task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id'])), + $task['position'], + $this->e($task['column_title']) + ) ?>

e($task['title']) ?> diff --git a/app/Template/event/task_open.php b/app/Template/event/task_open.php index cdcb907c..353f8dac 100644 --- a/app/Template/event/task_open.php +++ b/app/Template/event/task_open.php @@ -1,5 +1,8 @@

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

e($task['title']) ?> diff --git a/app/Template/event/task_update.php b/app/Template/event/task_update.php index 34b96257..24b17446 100644 --- a/app/Template/event/task_update.php +++ b/app/Template/event/task_update.php @@ -1,5 +1,8 @@

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

e($task['title']) ?> -- cgit v1.2.3