From 11b6381cc0f0583a11287202463d20a0ac1ebf00 Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Thu, 20 Nov 2014 20:26:21 -0500 Subject: Move and clean some templates to a subfolder --- app/Controller/Config.php | 12 +++++------ app/Controller/File.php | 6 +++--- app/Template/config/about.php | 41 +++++++++++++++++++++++++++++++++++++ app/Template/config/api.php | 18 ++++++++++++++++ app/Template/config/application.php | 27 ++++++++++++++++++++++++ app/Template/config/board.php | 29 ++++++++++++++++++++++++++ app/Template/config/layout.php | 10 +++++++++ app/Template/config/sidebar.php | 20 ++++++++++++++++++ app/Template/config/webhook.php | 38 ++++++++++++++++++++++++++++++++++ app/Template/config_about.php | 41 ------------------------------------- app/Template/config_api.php | 18 ---------------- app/Template/config_application.php | 27 ------------------------ app/Template/config_board.php | 29 -------------------------- app/Template/config_layout.php | 10 --------- app/Template/config_sidebar.php | 20 ------------------ app/Template/config_webhook.php | 38 ---------------------------------- app/Template/file/new.php | 14 +++++++++++++ app/Template/file/open.php | 6 ++++++ app/Template/file/remove.php | 15 ++++++++++++++ app/Template/file/show.php | 23 +++++++++++++++++++++ app/Template/file_new.php | 14 ------------- app/Template/file_open.php | 6 ------ app/Template/file_remove.php | 14 ------------- app/Template/file_show.php | 23 --------------------- app/Template/task_show.php | 2 +- assets/css/app.css | 2 +- assets/css/header.css | 2 +- 27 files changed, 253 insertions(+), 252 deletions(-) create mode 100644 app/Template/config/about.php create mode 100644 app/Template/config/api.php create mode 100644 app/Template/config/application.php create mode 100644 app/Template/config/board.php create mode 100644 app/Template/config/layout.php create mode 100644 app/Template/config/sidebar.php create mode 100644 app/Template/config/webhook.php delete mode 100644 app/Template/config_about.php delete mode 100644 app/Template/config_api.php delete mode 100644 app/Template/config_application.php delete mode 100644 app/Template/config_board.php delete mode 100644 app/Template/config_layout.php delete mode 100644 app/Template/config_sidebar.php delete mode 100644 app/Template/config_webhook.php create mode 100644 app/Template/file/new.php create mode 100644 app/Template/file/open.php create mode 100644 app/Template/file/remove.php create mode 100644 app/Template/file/show.php delete mode 100644 app/Template/file_new.php delete mode 100644 app/Template/file_open.php delete mode 100644 app/Template/file_remove.php delete mode 100644 app/Template/file_show.php diff --git a/app/Controller/Config.php b/app/Controller/Config.php index 3e0b290b..199259d7 100644 --- a/app/Controller/Config.php +++ b/app/Controller/Config.php @@ -25,7 +25,7 @@ class Config extends Base $params['errors'] = array(); $params['config_content_for_layout'] = $this->template->load($template, $params); - return $this->template->layout('config_layout', $params); + return $this->template->layout('config/layout', $params); } /** @@ -59,7 +59,7 @@ class Config extends Base */ public function index() { - $this->response->html($this->layout('config_about', array( + $this->response->html($this->layout('config/about', array( 'db_size' => $this->config->getDatabaseSize(), 'title' => t('Settings').' > '.t('About'), ))); @@ -74,7 +74,7 @@ class Config extends Base { $this->common('application'); - $this->response->html($this->layout('config_application', array( + $this->response->html($this->layout('config/application', array( 'languages' => $this->config->getLanguages(), 'timezones' => $this->config->getTimezones(), 'date_formats' => $this->dateParser->getAvailableFormats(), @@ -91,7 +91,7 @@ class Config extends Base { $this->common('board'); - $this->response->html($this->layout('config_board', array( + $this->response->html($this->layout('config/board', array( 'default_columns' => implode(', ', $this->board->getDefaultColumns()), 'title' => t('Settings').' > '.t('Board settings'), ))); @@ -106,7 +106,7 @@ class Config extends Base { $this->common('webhook'); - $this->response->html($this->layout('config_webhook', array( + $this->response->html($this->layout('config/webhook', array( 'title' => t('Settings').' > '.t('Webhook settings'), ))); } @@ -118,7 +118,7 @@ class Config extends Base */ public function api() { - $this->response->html($this->layout('config_api', array( + $this->response->html($this->layout('config/api', array( 'title' => t('Settings').' > '.t('API'), ))); } diff --git a/app/Controller/File.php b/app/Controller/File.php index 24db7565..ae44cac0 100644 --- a/app/Controller/File.php +++ b/app/Controller/File.php @@ -21,7 +21,7 @@ class File extends Base { $task = $this->getTask(); - $this->response->html($this->taskLayout('file_new', array( + $this->response->html($this->taskLayout('file/new', array( 'task' => $task, 'max_size' => ini_get('upload_max_filesize'), ))); @@ -75,7 +75,7 @@ class File extends Base $file = $this->file->getById($this->request->getIntegerParam('file_id')); if ($file['task_id'] == $task['id']) { - $this->response->html($this->template->load('file_open', array( + $this->response->html($this->template->load('file/open', array( 'file' => $file ))); } @@ -132,7 +132,7 @@ class File extends Base $task = $this->getTask(); $file = $this->file->getById($this->request->getIntegerParam('file_id')); - $this->response->html($this->taskLayout('file_remove', array( + $this->response->html($this->taskLayout('file/remove', array( 'task' => $task, 'file' => $file, ))); diff --git a/app/Template/config/about.php b/app/Template/config/about.php new file mode 100644 index 00000000..3f34f802 --- /dev/null +++ b/app/Template/config/about.php @@ -0,0 +1,41 @@ + +
+ +
+ + +
+ +
\ No newline at end of file diff --git a/app/Template/config/api.php b/app/Template/config/api.php new file mode 100644 index 00000000..037ea08d --- /dev/null +++ b/app/Template/config/api.php @@ -0,0 +1,18 @@ + +
+ +
\ No newline at end of file diff --git a/app/Template/config/application.php b/app/Template/config/application.php new file mode 100644 index 00000000..c92975bc --- /dev/null +++ b/app/Template/config/application.php @@ -0,0 +1,27 @@ + +
+
+ + + + +
+

+ + +
+ + +
+ + +
+

+ +
+ +
+
+
\ No newline at end of file diff --git a/app/Template/config/board.php b/app/Template/config/board.php new file mode 100644 index 00000000..f260d084 --- /dev/null +++ b/app/Template/config/board.php @@ -0,0 +1,29 @@ + +
+
+ + + + +
+

+ + +
+

+ + +
+

+ + +
+

+ +
+ +
+
+
\ No newline at end of file diff --git a/app/Template/config/layout.php b/app/Template/config/layout.php new file mode 100644 index 00000000..e0ac2fa8 --- /dev/null +++ b/app/Template/config/layout.php @@ -0,0 +1,10 @@ +
+ +
\ No newline at end of file diff --git a/app/Template/config/sidebar.php b/app/Template/config/sidebar.php new file mode 100644 index 00000000..5870ca81 --- /dev/null +++ b/app/Template/config/sidebar.php @@ -0,0 +1,20 @@ + \ No newline at end of file diff --git a/app/Template/config/webhook.php b/app/Template/config/webhook.php new file mode 100644 index 00000000..052a2a99 --- /dev/null +++ b/app/Template/config/webhook.php @@ -0,0 +1,38 @@ + +
+
+ + + + +
+ + +
+ +
+ +
+
+
+ + +
+ +
\ No newline at end of file diff --git a/app/Template/config_about.php b/app/Template/config_about.php deleted file mode 100644 index 3f34f802..00000000 --- a/app/Template/config_about.php +++ /dev/null @@ -1,41 +0,0 @@ - -
- -
- - -
- -
\ No newline at end of file diff --git a/app/Template/config_api.php b/app/Template/config_api.php deleted file mode 100644 index 037ea08d..00000000 --- a/app/Template/config_api.php +++ /dev/null @@ -1,18 +0,0 @@ - -
- -
\ No newline at end of file diff --git a/app/Template/config_application.php b/app/Template/config_application.php deleted file mode 100644 index c92975bc..00000000 --- a/app/Template/config_application.php +++ /dev/null @@ -1,27 +0,0 @@ - -
-
- - - - -
-

- - -
- - -
- - -
-

- -
- -
-
-
\ No newline at end of file diff --git a/app/Template/config_board.php b/app/Template/config_board.php deleted file mode 100644 index f260d084..00000000 --- a/app/Template/config_board.php +++ /dev/null @@ -1,29 +0,0 @@ - -
-
- - - - -
-

- - -
-

- - -
-

- - -
-

- -
- -
-
-
\ No newline at end of file diff --git a/app/Template/config_layout.php b/app/Template/config_layout.php deleted file mode 100644 index bafad6bb..00000000 --- a/app/Template/config_layout.php +++ /dev/null @@ -1,10 +0,0 @@ -
- -
\ No newline at end of file diff --git a/app/Template/config_sidebar.php b/app/Template/config_sidebar.php deleted file mode 100644 index 5870ca81..00000000 --- a/app/Template/config_sidebar.php +++ /dev/null @@ -1,20 +0,0 @@ - \ No newline at end of file diff --git a/app/Template/config_webhook.php b/app/Template/config_webhook.php deleted file mode 100644 index 052a2a99..00000000 --- a/app/Template/config_webhook.php +++ /dev/null @@ -1,38 +0,0 @@ - -
-
- - - - -
- - -
- -
- -
-
-
- - -
- -
\ No newline at end of file diff --git a/app/Template/file/new.php b/app/Template/file/new.php new file mode 100644 index 00000000..63c29f1d --- /dev/null +++ b/app/Template/file/new.php @@ -0,0 +1,14 @@ + + +
+ + +
+
+ + + $task['id'])) ?> +
+
\ No newline at end of file diff --git a/app/Template/file/open.php b/app/Template/file/open.php new file mode 100644 index 00000000..6106e6f8 --- /dev/null +++ b/app/Template/file/open.php @@ -0,0 +1,6 @@ + \ No newline at end of file diff --git a/app/Template/file/remove.php b/app/Template/file/remove.php new file mode 100644 index 00000000..4f655e5a --- /dev/null +++ b/app/Template/file/remove.php @@ -0,0 +1,15 @@ + + +
+

+ +

+ +
+ $task['id'], 'file_id' => $file['id']), true, 'btn btn-red') ?> + + $task['id'])) ?> +
+
\ No newline at end of file diff --git a/app/Template/file/show.php b/app/Template/file/show.php new file mode 100644 index 00000000..92a7c100 --- /dev/null +++ b/app/Template/file/show.php @@ -0,0 +1,23 @@ + +
+ + + + + +
+ \ No newline at end of file diff --git a/app/Template/file_new.php b/app/Template/file_new.php deleted file mode 100644 index 7f7f1d1c..00000000 --- a/app/Template/file_new.php +++ /dev/null @@ -1,14 +0,0 @@ - - -
- - -
-
- - - -
-
\ No newline at end of file diff --git a/app/Template/file_open.php b/app/Template/file_open.php deleted file mode 100644 index aa181d64..00000000 --- a/app/Template/file_open.php +++ /dev/null @@ -1,6 +0,0 @@ - \ No newline at end of file diff --git a/app/Template/file_remove.php b/app/Template/file_remove.php deleted file mode 100644 index af77591c..00000000 --- a/app/Template/file_remove.php +++ /dev/null @@ -1,14 +0,0 @@ - - -
-

- -

- -
- - -
-
\ No newline at end of file diff --git a/app/Template/file_show.php b/app/Template/file_show.php deleted file mode 100644 index 3832a0f5..00000000 --- a/app/Template/file_show.php +++ /dev/null @@ -1,23 +0,0 @@ - -
- - - - - -
- \ No newline at end of file diff --git a/app/Template/task_show.php b/app/Template/task_show.php index ec5d5da4..a4b49cef 100644 --- a/app/Template/task_show.php +++ b/app/Template/task_show.php @@ -3,5 +3,5 @@ $task)) ?> $task, 'subtasks' => $subtasks)) ?> $timesheet)) ?> - $task, 'files' => $files)) ?> + $task, 'files' => $files)) ?> $task, 'comments' => $comments, 'project' => $project)) ?> \ No newline at end of file diff --git a/assets/css/app.css b/assets/css/app.css index 0ce83aa4..2894b9ee 100644 --- a/assets/css/app.css +++ b/assets/css/app.css @@ -527,7 +527,7 @@ nav .active a { margin: 0; padding: 0; font-size: 140%; - border-bottom: 1px dotted #DF5353; + border-bottom: 1px dotted #ccc; } .page-header h2 a { diff --git a/assets/css/header.css b/assets/css/header.css index 4fc268cc..c8b820d1 100644 --- a/assets/css/header.css +++ b/assets/css/header.css @@ -61,7 +61,7 @@ nav .active a { margin: 0; padding: 0; font-size: 140%; - border-bottom: 1px dotted #DF5353; + border-bottom: 1px dotted #ccc; } .page-header h2 a { -- cgit v1.2.3