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/action/index.php | 2 +- app/Template/analytic/avg_time_columns.php | 2 +- app/Template/analytic/compare_hours.php | 12 ++++++------ app/Template/analytic/tasks.php | 2 +- app/Template/analytic/users.php | 2 +- app/Template/app/projects.php | 6 +++--- app/Template/app/sidebar.php | 2 +- app/Template/app/subtasks.php | 8 ++++---- app/Template/app/tasks.php | 8 ++++---- app/Template/auth/index.php | 2 +- 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 ++-- app/Template/category/index.php | 2 +- app/Template/column/index.php | 6 +++--- app/Template/comment/show.php | 2 +- app/Template/config/about.php | 2 +- app/Template/config/api.php | 2 +- app/Template/config/plugins.php | 10 +++++----- app/Template/config/webhook.php | 2 +- app/Template/currency/index.php | 2 +- app/Template/custom_filter/index.php | 6 +++--- app/Template/event/comment_create.php | 4 ++-- app/Template/event/comment_update.php | 4 ++-- app/Template/event/subtask_create.php | 6 +++--- app/Template/event/subtask_update.php | 6 +++--- app/Template/event/task_assignee_change.php | 8 ++++---- app/Template/event/task_close.php | 4 ++-- app/Template/event/task_create.php | 4 ++-- app/Template/event/task_file_create.php | 4 ++-- app/Template/event/task_move_column.php | 6 +++--- app/Template/event/task_move_position.php | 6 +++--- app/Template/event/task_move_swimlane.php | 8 ++++---- app/Template/event/task_open.php | 4 ++-- app/Template/event/task_update.php | 4 ++-- app/Template/feed/project.php | 2 +- app/Template/feed/user.php | 2 +- app/Template/file_viewer/show.php | 4 ++-- app/Template/group/index.php | 4 ++-- app/Template/group/users.php | 6 +++--- app/Template/header.php | 8 ++++---- app/Template/layout.php | 2 +- app/Template/listing/show.php | 10 +++++----- app/Template/notification/comment_create.php | 2 +- app/Template/notification/comment_update.php | 2 +- app/Template/notification/comment_user_mention.php | 2 +- app/Template/notification/subtask_create.php | 10 +++++----- app/Template/notification/subtask_update.php | 12 ++++++------ app/Template/notification/task_assignee_change.php | 2 +- app/Template/notification/task_close.php | 2 +- app/Template/notification/task_create.php | 8 ++++---- app/Template/notification/task_file_create.php | 2 +- app/Template/notification/task_move_column.php | 6 +++--- app/Template/notification/task_move_position.php | 6 +++--- app/Template/notification/task_move_swimlane.php | 8 ++++---- app/Template/notification/task_open.php | 2 +- app/Template/notification/task_overdue.php | 4 ++-- app/Template/notification/task_update.php | 2 +- app/Template/notification/task_user_mention.php | 2 +- app/Template/project/index.php | 8 ++++---- app/Template/project/show.php | 6 +++--- app/Template/project_file/remove.php | 2 +- app/Template/project_header/search.php | 6 +++--- app/Template/project_overview/columns.php | 2 +- app/Template/project_overview/description.php | 2 +- app/Template/project_overview/files.php | 8 ++++---- app/Template/project_overview/information.php | 2 +- app/Template/project_permission/index.php | 4 ++-- app/Template/project_user/layout.php | 2 +- app/Template/project_user/roles.php | 6 +++--- app/Template/project_user/tasks.php | 10 +++++----- app/Template/project_user/tooltip_users.php | 2 +- app/Template/search/results.php | 14 +++++++------- app/Template/subtask/remove.php | 2 +- app/Template/subtask/table.php | 6 +++--- app/Template/swimlane/table.php | 6 +++--- app/Template/task/analytics.php | 2 +- app/Template/task/color_picker.php | 2 +- app/Template/task/details.php | 16 ++++++++-------- app/Template/task/remove.php | 2 +- app/Template/task/time_tracking_details.php | 2 +- app/Template/task/time_tracking_summary.php | 6 +++--- app/Template/task/transitions.php | 6 +++--- app/Template/task_external_link/show.php | 6 +++--- app/Template/task_file/remove.php | 2 +- app/Template/task_file/show.php | 8 ++++---- app/Template/task_recurrence/info.php | 8 ++++---- app/Template/tasklink/show.php | 16 ++++++++-------- app/Template/twofactor/index.php | 2 +- app/Template/twofactor/show.php | 4 ++-- app/Template/user/index.php | 6 +++--- app/Template/user/last.php | 6 +++--- app/Template/user/password_reset.php | 4 ++-- app/Template/user/profile.php | 6 +++--- app/Template/user/sessions.php | 4 ++-- app/Template/user/show.php | 6 +++--- app/Template/user/timesheet.php | 4 ++-- 105 files changed, 255 insertions(+), 255 deletions(-) (limited to 'app/Template') diff --git a/app/Template/action/index.php b/app/Template/action/index.php index 66cfed77..f3165251 100644 --- a/app/Template/action/index.php +++ b/app/Template/action/index.php @@ -45,7 +45,7 @@ text->contains($param_name, 'link_id')): ?> text->in($param_value, $links_list) ?> - e($param_value) ?> + text->e($param_value) ?> diff --git a/app/Template/analytic/avg_time_columns.php b/app/Template/analytic/avg_time_columns.php index 7b9d7cf9..5f6c6b35 100644 --- a/app/Template/analytic/avg_time_columns.php +++ b/app/Template/analytic/avg_time_columns.php @@ -16,7 +16,7 @@ - e($column['title']) ?> + text->e($column['title']) ?> dt->duration($column['average']) ?> diff --git a/app/Template/analytic/compare_hours.php b/app/Template/analytic/compare_hours.php index bb145d61..8249e7ba 100644 --- a/app/Template/analytic/compare_hours.php +++ b/app/Template/analytic/compare_hours.php @@ -4,8 +4,8 @@
@@ -34,10 +34,10 @@ getCollection() as $task): ?> - url->link('#'.$this->e($task['id']), 'task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id']), false, '', t('View this task')) ?> + url->link('#'.$this->text->e($task['id']), 'task', 'show', array('task_id' => $task['id'], 'project_id' => $task['project_id']), false, '', t('View this task')) ?> - 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')) ?> @@ -47,10 +47,10 @@ - e($task['time_estimated']) ?> + text->e($task['time_estimated']) ?> - e($task['time_spent']) ?> + text->e($task['time_spent']) ?> diff --git a/app/Template/analytic/tasks.php b/app/Template/analytic/tasks.php index 7392ee56..9e7b1fd7 100644 --- a/app/Template/analytic/tasks.php +++ b/app/Template/analytic/tasks.php @@ -18,7 +18,7 @@ - e($metric['column_title']) ?> + text->e($metric['column_title']) ?> diff --git a/app/Template/analytic/users.php b/app/Template/analytic/users.php index 514d7133..9d1d3a1e 100644 --- a/app/Template/analytic/users.php +++ b/app/Template/analytic/users.php @@ -18,7 +18,7 @@ - e($metric['user']) ?> + text->e($metric['user']) ?> diff --git a/app/Template/app/projects.php b/app/Template/app/projects.php index 61899c96..668b87c3 100644 --- a/app/Template/app/projects.php +++ b/app/Template/app/projects.php @@ -29,9 +29,9 @@ url->link('', 'listing', 'show', array('project_id' => $project['id']), false, 'dashboard-table-link', t('List')) ?>  url->link('', 'calendar', 'show', array('project_id' => $project['id']), false, 'dashboard-table-link', t('Calendar')) ?>  - url->link($this->e($project['name']), 'board', 'show', array('project_id' => $project['id'])) ?> + url->link($this->text->e($project['name']), 'board', 'show', array('project_id' => $project['id'])) ?> - '> + '> @@ -39,7 +39,7 @@ - e($column['title']) ?> + text->e($column['title']) ?> diff --git a/app/Template/app/sidebar.php b/app/Template/app/sidebar.php index 3f0d988b..66d15b14 100644 --- a/app/Template/app/sidebar.php +++ b/app/Template/app/sidebar.php @@ -1,5 +1,5 @@ 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']) ?>] () diff --git a/app/Template/category/index.php b/app/Template/category/index.php index e99b6d52..7b1adf78 100644 --- a/app/Template/category/index.php +++ b/app/Template/category/index.php @@ -9,7 +9,7 @@ $category_name): ?> - e($category_name) ?> + text->e($category_name) ?>