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/file/new.php | 8 ++++----
app/Template/file/open.php | 2 +-
app/Template/file/remove.php | 4 ++--
app/Template/file/screenshot.php | 6 +++---
app/Template/file/show.php | 18 +++++++++---------
5 files changed, 19 insertions(+), 19 deletions(-)
(limited to 'app/Template/file')
diff --git a/app/Template/file/new.php b/app/Template/file/new.php
index 4f0c233b..a1a59eae 100644
--- a/app/Template/file/new.php
+++ b/app/Template/file/new.php
@@ -2,13 +2,13 @@
= t('Attach a document') ?>
-
\ No newline at end of file
diff --git a/app/Template/file/open.php b/app/Template/file/open.php
index 70e0f8aa..3df012b6 100644
--- a/app/Template/file/open.php
+++ b/app/Template/file/open.php
@@ -1,6 +1,6 @@
\ No newline at end of file
diff --git a/app/Template/file/remove.php b/app/Template/file/remove.php
index 04ec30d5..37f648eb 100644
--- a/app/Template/file/remove.php
+++ b/app/Template/file/remove.php
@@ -8,8 +8,8 @@
- = $this->a(t('Yes'), 'file', 'remove', array('task_id' => $task['id'], 'project_id' => $task['project_id'], 'file_id' => $file['id']), true, 'btn btn-red') ?>
+ = $this->url->link(t('Yes'), 'file', 'remove', array('task_id' => $task['id'], 'project_id' => $task['project_id'], 'file_id' => $file['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/file/screenshot.php b/app/Template/file/screenshot.php
index 299bf615..89d9324c 100644
--- a/app/Template/file/screenshot.php
+++ b/app/Template/file/screenshot.php
@@ -6,12 +6,12 @@
= t('Take a screenshot and press CTRL+V or ⌘+V to paste here.') ?>
-
diff --git a/app/Template/file/show.php b/app/Template/file/show.php
index 3ce7f9f4..7d5dc96f 100644
--- a/app/Template/file/show.php
+++ b/app/Template/file/show.php
@@ -11,19 +11,19 @@
-
![<?= $this->e($file['name']) ?>](<?= $this->u('file', 'thumbnail', array('width' => 250, 'height' => 100, 'file_id' => $file['id'], 'project_id' => $task['project_id'], 'task_id' => $file['task_id'])) ?>)
+
= $this->e($file['name']) ?>
- '.t('uploaded on: %s', dt('%B %e, %Y at %k:%M %p', $file['date'])).'
'.t('size: %s', $this->formatBytes($file['size'])) ?>'>
+ '.t('uploaded on: %s', dt('%B %e, %Y at %k:%M %p', $file['date'])).'
'.t('size: %s', $this->text->bytes($file['size'])) ?>'>
- = $this->a(t('open'), 'file', 'open', array('task_id' => $task['id'], 'project_id' => $task['project_id'], 'file_id' => $file['id']), false, 'popover') ?>
- = $this->a(t('remove'), 'file', 'confirm', array('task_id' => $task['id'], 'project_id' => $task['project_id'], 'file_id' => $file['id'])) ?>
- = $this->a(t('download'), 'file', 'download', array('task_id' => $task['id'], 'project_id' => $task['project_id'], 'file_id' => $file['id'])) ?>
+ = $this->url->link(t('open'), 'file', 'open', array('task_id' => $task['id'], 'project_id' => $task['project_id'], 'file_id' => $file['id']), false, 'popover') ?>
+ = $this->url->link(t('remove'), 'file', 'confirm', array('task_id' => $task['id'], 'project_id' => $task['project_id'], 'file_id' => $file['id'])) ?>
+ = $this->url->link(t('download'), 'file', 'download', array('task_id' => $task['id'], 'project_id' => $task['project_id'], 'file_id' => $file['id'])) ?>
@@ -35,17 +35,17 @@
- |
+ |
= $this->e($file['name']) ?>
- '.t('uploaded on: %s', dt('%B %e, %Y at %k:%M %p', $file['date'])).' '.t('size: %s', $this->formatBytes($file['size'])) ?>'>
+ '.t('uploaded on: %s', dt('%B %e, %Y at %k:%M %p', $file['date'])).' '.t('size: %s', $this->text->bytes($file['size'])) ?>'>
|
- = $this->a(t('remove'), 'file', 'confirm', array('task_id' => $task['id'], 'project_id' => $task['project_id'], 'file_id' => $file['id'])) ?>
- = $this->a(t('download'), 'file', 'download', array('task_id' => $task['id'], 'project_id' => $task['project_id'], 'file_id' => $file['id'])) ?>
+ = $this->url->link(t('remove'), 'file', 'confirm', array('task_id' => $task['id'], 'project_id' => $task['project_id'], 'file_id' => $file['id'])) ?>
+ = $this->url->link(t('download'), 'file', 'download', array('task_id' => $task['id'], 'project_id' => $task['project_id'], 'file_id' => $file['id'])) ?>
|
--
cgit v1.2.3