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/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 +++--- 7 files changed, 18 insertions(+), 18 deletions(-) (limited to 'app/Template/task') diff --git a/app/Template/task/analytics.php b/app/Template/task/analytics.php index 306dd021..2f2c23a1 100644 --- a/app/Template/task/analytics.php +++ b/app/Template/task/analytics.php @@ -18,7 +18,7 @@ - e($column['title']) ?> + text->e($column['title']) ?> dt->duration($column['time_spent']) ?> diff --git a/app/Template/task/color_picker.php b/app/Template/task/color_picker.php index a849b9ce..0c62fa70 100644 --- a/app/Template/task/color_picker.php +++ b/app/Template/task/color_picker.php @@ -3,7 +3,7 @@
+ title="text->e($color_name) ?>">
diff --git a/app/Template/task/details.php b/app/Template/task/details.php index 5c2e3cff..61f6c848 100644 --- a/app/Template/task/details.php +++ b/app/Template/task/details.php @@ -1,5 +1,5 @@
-

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

+

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

    @@ -18,12 +18,12 @@
  • - e($task['reference']) ?> + text->e($task['reference']) ?>
  • - e($task['score']) ?> + text->e($task['score']) ?>
  • @@ -39,18 +39,18 @@
  • - e($task['category_name']) ?> + text->e($task['category_name']) ?>
  • - e($task['swimlane_name']) ?> + text->e($task['swimlane_name']) ?>
  • - e($task['column_title']) ?> + text->e($task['column_title']) ?>
  • @@ -64,7 +64,7 @@ - e($task['assignee_name'] ?: $task['assignee_username']) ?> + text->e($task['assignee_name'] ?: $task['assignee_username']) ?> @@ -73,7 +73,7 @@
  • - e($task['creator_name'] ?: $task['creator_username']) ?> + text->e($task['creator_name'] ?: $task['creator_username']) ?>
  • diff --git a/app/Template/task/remove.php b/app/Template/task/remove.php index e0d655fe..eb0809b1 100644 --- a/app/Template/task/remove.php +++ b/app/Template/task/remove.php @@ -4,7 +4,7 @@

    - e($task['title'])) ?> + text->e($task['title'])) ?>

    diff --git a/app/Template/task/time_tracking_details.php b/app/Template/task/time_tracking_details.php index 147c5109..e2b599a5 100644 --- a/app/Template/task/time_tracking_details.php +++ b/app/Template/task/time_tracking_details.php @@ -14,7 +14,7 @@ getCollection() as $record): ?> - url->link($this->e($record['user_fullname'] ?: $record['username']), 'user', 'show', array('user_id' => $record['user_id'])) ?> + url->link($this->text->e($record['user_fullname'] ?: $record['username']), 'user', 'show', array('user_id' => $record['user_id'])) ?> dt->datetime($record['start']) ?> dt->datetime($record['end']) ?> diff --git a/app/Template/task/time_tracking_summary.php b/app/Template/task/time_tracking_summary.php index 0210be7e..9886ccfa 100644 --- a/app/Template/task/time_tracking_summary.php +++ b/app/Template/task/time_tracking_summary.php @@ -5,9 +5,9 @@
      -
    • e($task['time_estimated']) ?>
    • -
    • e($task['time_spent']) ?>
    • -
    • e($task['time_estimated'] - $task['time_spent']) ?>
    • +
    • text->e($task['time_estimated']) ?>
    • +
    • text->e($task['time_spent']) ?>
    • +
    • text->e($task['time_estimated'] - $task['time_spent']) ?>
    \ No newline at end of file diff --git a/app/Template/task/transitions.php b/app/Template/task/transitions.php index d79c2fd9..57f1e0ff 100644 --- a/app/Template/task/transitions.php +++ b/app/Template/task/transitions.php @@ -16,9 +16,9 @@ dt->datetime($transition['date']) ?> - e($transition['src_column']) ?> - e($transition['dst_column']) ?> - url->link($this->e($transition['name'] ?: $transition['username']), 'user', 'show', array('user_id' => $transition['user_id'])) ?> + text->e($transition['src_column']) ?> + text->e($transition['dst_column']) ?> + url->link($this->text->e($transition['name'] ?: $transition['username']), 'user', 'show', array('user_id' => $transition['user_id'])) ?> dt->duration($transition['time_spent']) ?> -- cgit v1.2.3