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/tasklink/create.php | 22 +++++++++++-----------
app/Template/tasklink/edit.php | 22 +++++++++++-----------
app/Template/tasklink/remove.php | 4 ++--
app/Template/tasklink/show.php | 24 ++++++++++++------------
4 files changed, 36 insertions(+), 36 deletions(-)
(limited to 'app/Template/tasklink')
diff --git a/app/Template/tasklink/create.php b/app/Template/tasklink/create.php
index 3394271a..749f2968 100644
--- a/app/Template/tasklink/create.php
+++ b/app/Template/tasklink/create.php
@@ -2,17 +2,17 @@
= t('Add a new link') ?>
-
\ No newline at end of file
diff --git a/app/Template/tasklink/edit.php b/app/Template/tasklink/edit.php
index 37c3cb14..73b43277 100644
--- a/app/Template/tasklink/edit.php
+++ b/app/Template/tasklink/edit.php
@@ -2,18 +2,18 @@
= t('Edit link') ?>
-
\ No newline at end of file
diff --git a/app/Template/tasklink/remove.php b/app/Template/tasklink/remove.php
index 9322ec24..262fb488 100644
--- a/app/Template/tasklink/remove.php
+++ b/app/Template/tasklink/remove.php
@@ -8,8 +8,8 @@
- = $this->a(t('Yes'), 'tasklink', 'remove', array('link_id' => $link['id'], 'task_id' => $task['id'], 'project_id' => $task['project_id']), true, 'btn btn-red') ?>
+ = $this->url->link(t('Yes'), 'tasklink', 'remove', array('link_id' => $link['id'], 'task_id' => $task['id'], 'project_id' => $task['project_id']), true, 'btn btn-red') ?>
= t('or') ?>
- = $this->a(t('cancel'), 'task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?>
+ = $this->url->link(t('cancel'), 'task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id'])) ?>
\ No newline at end of file
diff --git a/app/Template/tasklink/show.php b/app/Template/tasklink/show.php
index d4a3939b..7125b11d 100644
--- a/app/Template/tasklink/show.php
+++ b/app/Template/tasklink/show.php
@@ -23,7 +23,7 @@
- = $this->a(
+ = $this->url->link(
$this->e('#'.$link['task_id'].' '.$link['title']),
'task',
'show',
@@ -32,7 +32,7 @@
$link['is_active'] ? '' : 'task-link-closed'
) ?>
- = $this->a(
+ = $this->url->link(
$this->e('#'.$link['task_id'].' '.$link['title']),
'task',
'readonly',
@@ -56,7 +56,7 @@
|
- = $this->a($this->e($link['task_assignee_name'] ?: $link['task_assignee_username']), 'user', 'show', array('user_id' => $link['task_assignee_id'])) ?>
+ = $this->url->link($this->e($link['task_assignee_name'] ?: $link['task_assignee_username']), 'user', 'show', array('user_id' => $link['task_assignee_id'])) ?>
= $this->e($link['task_assignee_name'] ?: $link['task_assignee_username']) ?>
@@ -65,8 +65,8 @@
|
- - = $this->a(t('Edit'), 'tasklink', 'edit', array('link_id' => $link['id'], 'task_id' => $task['id'], 'project_id' => $task['project_id'])) ?>
- - = $this->a(t('Remove'), 'tasklink', 'confirm', array('link_id' => $link['id'], 'task_id' => $task['id'], 'project_id' => $task['project_id'])) ?>
+ - = $this->url->link(t('Edit'), 'tasklink', 'edit', array('link_id' => $link['id'], 'task_id' => $task['id'], 'project_id' => $task['project_id'])) ?>
+ - = $this->url->link(t('Remove'), 'tasklink', 'confirm', array('link_id' => $link['id'], 'task_id' => $task['id'], 'project_id' => $task['project_id'])) ?>
|
@@ -76,15 +76,15 @@
-