From 8f3e2b2e5c62a6130f6c8867ab335fb4c1a32c5c Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Fri, 4 Mar 2016 20:10:34 -0500 Subject: Helper refactoring --- app/Template/board/table_column.php | 8 ++++---- app/Template/board/table_swimlane.php | 2 +- app/Template/board/table_tasks.php | 2 +- app/Template/board/task_footer.php | 8 ++++---- app/Template/board/task_private.php | 10 +++++----- app/Template/board/task_public.php | 2 +- app/Template/board/tooltip_comments.php | 2 +- app/Template/board/tooltip_external_links.php | 4 ++-- app/Template/board/tooltip_files.php | 2 +- app/Template/board/tooltip_subtasks.php | 2 +- app/Template/board/tooltip_tasklinks.php | 4 ++-- 11 files changed, 23 insertions(+), 23 deletions(-) (limited to 'app/Template/board') diff --git a/app/Template/board/table_column.php b/app/Template/board/table_column.php index 58dcaf32..48538c88 100644 --- a/app/Template/board/table_column.php +++ b/app/Template/board/table_column.php @@ -26,10 +26,10 @@ - e($column['title']) ?> + text->e($column['title']) ?> - e($column['title']) ?> + text->e($column['title']) ?>
  • @@ -47,7 +47,7 @@ - '> + '>   @@ -60,7 +60,7 @@ - (/e($column['task_limit']) ?>) + (/text->e($column['task_limit']) ?>) diff --git a/app/Template/board/table_swimlane.php b/app/Template/board/table_swimlane.php index 44607859..349b9acb 100644 --- a/app/Template/board/table_swimlane.php +++ b/app/Template/board/table_swimlane.php @@ -8,7 +8,7 @@ - e($swimlane['name']) ?> + text->e($swimlane['name']) ?>
    - e($column['title']) ?> + text->e($column['title']) ?>
    diff --git a/app/Template/board/task_footer.php b/app/Template/board/task_footer.php index 73e68602..d8b21a5b 100644 --- a/app/Template/board/task_footer.php +++ b/app/Template/board/task_footer.php @@ -2,10 +2,10 @@
    - e($task['category_name']) ?> + text->e($task['category_name']) ?> url->link( - $this->e($task['category_name']), + $this->text->e($task['category_name']), 'boardPopover', 'changeCategory', array('task_id' => $task['id'], 'project_id' => $task['project_id']), @@ -61,11 +61,11 @@ - e($task['score']) ?> + text->e($task['score']) ?> - e($task['time_estimated']).'h' ?> + text->e($task['time_estimated']).'h' ?> diff --git a/app/Template/board/task_private.php b/app/Template/board/task_private.php index 4880af00..50efe2f6 100644 --- a/app/Template/board/task_private.php +++ b/app/Template/board/task_private.php @@ -23,11 +23,11 @@ - - e($this->user->getInitials($task['assignee_name'] ?: $task['assignee_username'])) ?> + + text->e($this->user->getInitials($task['assignee_name'] ?: $task['assignee_username'])) ?> - - url->link($this->e($task['title']), 'task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id']), false, 'task-board-collapsed-title tooltip', $this->e($task['title'])) ?> + url->link($this->text->e($task['title']), 'task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id']), false, 'task-board-collapsed-title tooltip', $this->text->e($task['title'])) ?>
    @@ -57,7 +57,7 @@ t('Change assignee') ) ?> - e($task['assignee_name'] ?: $task['assignee_username']) ?> + text->e($task['assignee_name'] ?: $task['assignee_username']) ?> @@ -72,7 +72,7 @@
    - url->link($this->e($task['title']), 'task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id']), false, '', t('View this task')) ?> + url->link($this->text->e($task['title']), 'task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id']), false, '', t('View this task')) ?>
    render('board/task_footer', array( diff --git a/app/Template/board/task_public.php b/app/Template/board/task_public.php index d02722bb..9058f897 100644 --- a/app/Template/board/task_public.php +++ b/app/Template/board/task_public.php @@ -19,7 +19,7 @@
    - url->link($this->e($task['title']), 'task', 'readonly', array('task_id' => $task['id'], 'token' => $project['token'])) ?> + url->link($this->text->e($task['title']), 'task', 'readonly', array('task_id' => $task['id'], 'token' => $project['token'])) ?>
    render('board/task_footer', array( diff --git a/app/Template/board/tooltip_comments.php b/app/Template/board/tooltip_comments.php index ca91e13f..6665bc7d 100644 --- a/app/Template/board/tooltip_comments.php +++ b/app/Template/board/tooltip_comments.php @@ -2,7 +2,7 @@

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

    diff --git a/app/Template/board/tooltip_external_links.php b/app/Template/board/tooltip_external_links.php index 7681c06c..24cd1d88 100644 --- a/app/Template/board/tooltip_external_links.php +++ b/app/Template/board/tooltip_external_links.php @@ -10,10 +10,10 @@ - e($link['title']) ?> + text->e($link['title']) ?> - e($link['dependency_label']) ?> + text->e($link['dependency_label']) ?> diff --git a/app/Template/board/tooltip_files.php b/app/Template/board/tooltip_files.php index 4fa14b57..39823757 100644 --- a/app/Template/board/tooltip_files.php +++ b/app/Template/board/tooltip_files.php @@ -3,7 +3,7 @@ - e($file['name']) ?> + text->e($file['name']) ?> diff --git a/app/Template/board/tooltip_subtasks.php b/app/Template/board/tooltip_subtasks.php index dc076d26..126a319f 100644 --- a/app/Template/board/tooltip_subtasks.php +++ b/app/Template/board/tooltip_subtasks.php @@ -6,7 +6,7 @@ - e($subtask['name'] ?: $subtask['username']) ?> + text->e($subtask['name'] ?: $subtask['username']) ?> diff --git a/app/Template/board/tooltip_tasklinks.php b/app/Template/board/tooltip_tasklinks.php index b51f90ed..cabe43d8 100644 --- a/app/Template/board/tooltip_tasklinks.php +++ b/app/Template/board/tooltip_tasklinks.php @@ -6,13 +6,13 @@
    task->getProgress($link).'%' ?> url->link( - $this->e('#'.$link['task_id'].' '.$link['title']), + $this->text->e('#'.$link['task_id'].' '.$link['title']), 'task', 'show', array('task_id' => $link['task_id'], 'project_id' => $link['project_id']), false, $link['is_active'] ? '' : 'task-link-closed' ) ?> - [e($link['task_assignee_name'] ?: $link['task_assignee_username']) ?>] + [text->e($link['task_assignee_name'] ?: $link['task_assignee_username']) ?>] () -- cgit v1.2.3