From 2230dd4e6b148346c0ec596b9e3e12996a762ed8 Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Thu, 22 May 2014 12:28:28 -0400 Subject: Code refactoring (add autoloader and change files organization) --- app/Templates/action_index.php | 77 +++++++++++++++++++++++ app/Templates/action_params.php | 43 +++++++++++++ app/Templates/action_remove.php | 16 +++++ app/Templates/app_notfound.php | 9 +++ app/Templates/board_assign.php | 35 +++++++++++ app/Templates/board_edit.php | 66 ++++++++++++++++++++ app/Templates/board_index.php | 42 +++++++++++++ app/Templates/board_public.php | 79 ++++++++++++++++++++++++ app/Templates/board_remove.php | 17 +++++ app/Templates/board_show.php | 88 ++++++++++++++++++++++++++ app/Templates/category_edit.php | 24 ++++++++ app/Templates/category_index.php | 48 +++++++++++++++ app/Templates/category_remove.php | 16 +++++ app/Templates/comment_forbidden.php | 9 +++ app/Templates/comment_remove.php | 18 ++++++ app/Templates/comment_show.php | 36 +++++++++++ app/Templates/config_index.php | 120 ++++++++++++++++++++++++++++++++++++ app/Templates/layout.php | 61 ++++++++++++++++++ app/Templates/project_edit.php | 24 ++++++++ app/Templates/project_forbidden.php | 9 +++ app/Templates/project_index.php | 98 +++++++++++++++++++++++++++++ app/Templates/project_new.php | 20 ++++++ app/Templates/project_remove.php | 16 +++++ app/Templates/project_search.php | 93 ++++++++++++++++++++++++++++ app/Templates/project_tasks.php | 71 +++++++++++++++++++++ app/Templates/project_users.php | 44 +++++++++++++ app/Templates/task_close.php | 10 +++ app/Templates/task_edit.php | 51 +++++++++++++++ app/Templates/task_layout.php | 16 +++++ app/Templates/task_new.php | 51 +++++++++++++++ app/Templates/task_open.php | 16 +++++ app/Templates/task_remove.php | 10 +++ app/Templates/task_show.php | 94 ++++++++++++++++++++++++++++ app/Templates/task_sidebar.php | 17 +++++ app/Templates/user_edit.php | 64 +++++++++++++++++++ app/Templates/user_forbidden.php | 9 +++ app/Templates/user_index.php | 56 +++++++++++++++++ app/Templates/user_login.php | 28 +++++++++ app/Templates/user_new.php | 45 ++++++++++++++ app/Templates/user_remove.php | 14 +++++ 40 files changed, 1660 insertions(+) create mode 100644 app/Templates/action_index.php create mode 100644 app/Templates/action_params.php create mode 100644 app/Templates/action_remove.php create mode 100644 app/Templates/app_notfound.php create mode 100644 app/Templates/board_assign.php create mode 100644 app/Templates/board_edit.php create mode 100644 app/Templates/board_index.php create mode 100644 app/Templates/board_public.php create mode 100644 app/Templates/board_remove.php create mode 100644 app/Templates/board_show.php create mode 100644 app/Templates/category_edit.php create mode 100644 app/Templates/category_index.php create mode 100644 app/Templates/category_remove.php create mode 100644 app/Templates/comment_forbidden.php create mode 100644 app/Templates/comment_remove.php create mode 100644 app/Templates/comment_show.php create mode 100644 app/Templates/config_index.php create mode 100644 app/Templates/layout.php create mode 100644 app/Templates/project_edit.php create mode 100644 app/Templates/project_forbidden.php create mode 100644 app/Templates/project_index.php create mode 100644 app/Templates/project_new.php create mode 100644 app/Templates/project_remove.php create mode 100644 app/Templates/project_search.php create mode 100644 app/Templates/project_tasks.php create mode 100644 app/Templates/project_users.php create mode 100644 app/Templates/task_close.php create mode 100644 app/Templates/task_edit.php create mode 100644 app/Templates/task_layout.php create mode 100644 app/Templates/task_new.php create mode 100644 app/Templates/task_open.php create mode 100644 app/Templates/task_remove.php create mode 100644 app/Templates/task_show.php create mode 100644 app/Templates/task_sidebar.php create mode 100644 app/Templates/user_edit.php create mode 100644 app/Templates/user_forbidden.php create mode 100644 app/Templates/user_index.php create mode 100644 app/Templates/user_login.php create mode 100644 app/Templates/user_new.php create mode 100644 app/Templates/user_remove.php (limited to 'app/Templates') diff --git a/app/Templates/action_index.php b/app/Templates/action_index.php new file mode 100644 index 00000000..b515ccaa --- /dev/null +++ b/app/Templates/action_index.php @@ -0,0 +1,77 @@ +
+ +
+ + + +

+ + + + + + + + + + + + + + + + + +
+
    + +
  • + = + + + + + + + + + + + + + +
  • + +
+
+ +
+ + + +

+
+ + + + +
+ + +
+ +
+ +
+ +
+ +
+
+
+
\ No newline at end of file diff --git a/app/Templates/action_params.php b/app/Templates/action_params.php new file mode 100644 index 00000000..15a1d420 --- /dev/null +++ b/app/Templates/action_params.php @@ -0,0 +1,43 @@ +
+ +
+ +

+
+ + + + + + $param_desc): ?> + + + +
+ + +
+ + +
+ + +
+ + +
+ + + +
+ + +
+
+
+
\ No newline at end of file diff --git a/app/Templates/action_remove.php b/app/Templates/action_remove.php new file mode 100644 index 00000000..b90136e8 --- /dev/null +++ b/app/Templates/action_remove.php @@ -0,0 +1,16 @@ +
+ + +
+

+ +

+ +
+ + +
+
+
\ No newline at end of file diff --git a/app/Templates/app_notfound.php b/app/Templates/app_notfound.php new file mode 100644 index 00000000..734d16a4 --- /dev/null +++ b/app/Templates/app_notfound.php @@ -0,0 +1,9 @@ +
+ + +

+ +

+
\ No newline at end of file diff --git a/app/Templates/board_assign.php b/app/Templates/board_assign.php new file mode 100644 index 00000000..74448a5c --- /dev/null +++ b/app/Templates/board_assign.php @@ -0,0 +1,35 @@ +
+ + + +
+

+
+ + + + + +
+ +
+ + +
+
+
+ + \ No newline at end of file diff --git a/app/Templates/board_edit.php b/app/Templates/board_edit.php new file mode 100644 index 00000000..575536a8 --- /dev/null +++ b/app/Templates/board_edit.php @@ -0,0 +1,66 @@ +
+ +
+ +

+
+ + + + + + + + + + + + + + + + + +
+
    + +
  • + +
  • + + +
  • + +
  • + +
  • + +
  • +
+
+ +
+ + +
+
+ +

+
+ + + + + +
+ + +
+
+
+
\ No newline at end of file diff --git a/app/Templates/board_index.php b/app/Templates/board_index.php new file mode 100644 index 00000000..989c2e06 --- /dev/null +++ b/app/Templates/board_index.php @@ -0,0 +1,42 @@ +
+ + + +
+
    +
  • + + +
  • +
  • + + +
  • +
  • +
  • +
  • +
+
+ + +

+ + $current_project_id, 'board' => $board, 'categories' => $categories)) ?> + + +
+ + diff --git a/app/Templates/board_public.php b/app/Templates/board_public.php new file mode 100644 index 00000000..0808079e --- /dev/null +++ b/app/Templates/board_public.php @@ -0,0 +1,79 @@ +
+ + +

+ + + + + + + + + + + + + +
+ + + () + +
+ +
+ + # - + + + + + + + + + + + + + +
+ +
+ + +
+ + + +
+ + + + + + +
+ +
+ + +
\ No newline at end of file diff --git a/app/Templates/board_remove.php b/app/Templates/board_remove.php new file mode 100644 index 00000000..b406eb38 --- /dev/null +++ b/app/Templates/board_remove.php @@ -0,0 +1,17 @@ +
+ + +
+

+ + +

+ +
+ + +
+
+
\ No newline at end of file diff --git a/app/Templates/board_show.php b/app/Templates/board_show.php new file mode 100644 index 00000000..719e3bdd --- /dev/null +++ b/app/Templates/board_show.php @@ -0,0 +1,88 @@ + + + + + + + + + + + + +
+ + + + + + ( + + / + + ) + + +
+ +
+ + # - + + + + + + + + + + + + + +
+ +
+ + +
+ + + +
+ + + + + + +
+ +
diff --git a/app/Templates/category_edit.php b/app/Templates/category_edit.php new file mode 100644 index 00000000..99ba0c7c --- /dev/null +++ b/app/Templates/category_edit.php @@ -0,0 +1,24 @@ +
+ +
+ +
+ + + + + + + +
+ +
+
+ +
+
\ No newline at end of file diff --git a/app/Templates/category_index.php b/app/Templates/category_index.php new file mode 100644 index 00000000..db986143 --- /dev/null +++ b/app/Templates/category_index.php @@ -0,0 +1,48 @@ +
+ +
+ + + + + + + + $category_name): ?> + + + + + +
+
    +
  • + +
  • +
  • + +
  • +
+
+ + +

+
+ + + + + + +
+ +
+
+ +
+
\ No newline at end of file diff --git a/app/Templates/category_remove.php b/app/Templates/category_remove.php new file mode 100644 index 00000000..cc2eb678 --- /dev/null +++ b/app/Templates/category_remove.php @@ -0,0 +1,16 @@ +
+ + +
+

+ +

+ +
+ + +
+
+
\ No newline at end of file diff --git a/app/Templates/comment_forbidden.php b/app/Templates/comment_forbidden.php new file mode 100644 index 00000000..eeea8404 --- /dev/null +++ b/app/Templates/comment_forbidden.php @@ -0,0 +1,9 @@ +
+ + +

+ +

+
\ No newline at end of file diff --git a/app/Templates/comment_remove.php b/app/Templates/comment_remove.php new file mode 100644 index 00000000..ad1b8e4a --- /dev/null +++ b/app/Templates/comment_remove.php @@ -0,0 +1,18 @@ +
+ + +
+

+ +

+ + $comment)) ?> + +
+ + +
+
+
\ No newline at end of file diff --git a/app/Templates/comment_show.php b/app/Templates/comment_show.php new file mode 100644 index 00000000..24bf9070 --- /dev/null +++ b/app/Templates/comment_show.php @@ -0,0 +1,36 @@ +
+

+ @ +

+ +
    +
  • + +
  • + +
  • +
  • + +
  • + +
+ + + +
+ + +
+ +
+ + + +
+
+ +
+ +
+ +
\ No newline at end of file diff --git a/app/Templates/config_index.php b/app/Templates/config_index.php new file mode 100644 index 00000000..6c610d2b --- /dev/null +++ b/app/Templates/config_index.php @@ -0,0 +1,120 @@ +
+ + + +
+
+ + +
+ + +
+ +
+ +
+
+
+ + + +
+
    +
  • + + , + +
  • +
+
+ + + +
+ +
+ + + + + + + + + + + + + + + + + + + +
+ + + + +

+ + + + + + + + + + + + + + + + + + +
+ +
diff --git a/app/Templates/layout.php b/app/Templates/layout.php new file mode 100644 index 00000000..0bb8446d --- /dev/null +++ b/app/Templates/layout.php @@ -0,0 +1,61 @@ + + + + + + + + + + + + + + + + + + + + + + <?= isset($title) ? Helper\escape($title).' - Kanboard' : 'Kanboard' ?> + + + + + + + + +
+ +
+
+ %s') ?> + %s') ?> + +
+ + + \ No newline at end of file diff --git a/app/Templates/project_edit.php b/app/Templates/project_edit.php new file mode 100644 index 00000000..557986bf --- /dev/null +++ b/app/Templates/project_edit.php @@ -0,0 +1,24 @@ +
+ +
+
+ + + + + + +
+ +
+ + +
+
+
+
\ No newline at end of file diff --git a/app/Templates/project_forbidden.php b/app/Templates/project_forbidden.php new file mode 100644 index 00000000..1cba7b58 --- /dev/null +++ b/app/Templates/project_forbidden.php @@ -0,0 +1,9 @@ +
+ + +

+ +

+
\ No newline at end of file diff --git a/app/Templates/project_index.php b/app/Templates/project_index.php new file mode 100644 index 00000000..df153fe7 --- /dev/null +++ b/app/Templates/project_index.php @@ -0,0 +1,98 @@ +
+ +
+ +

+ + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + 0): ?> + + 0): ?> + , + + + 0): ?> + , + + + + + + + + +
    + +
  • + () +
  • + +
+
+
    +
  • + +
  • +
  • + +
  • +
  • + +
  • +
  • + +
  • +
  • + +
  • +
  • + + + + + +
  • +
  • + +
  • +
  • + +
  • +
+
+ +
+
\ No newline at end of file diff --git a/app/Templates/project_new.php b/app/Templates/project_new.php new file mode 100644 index 00000000..2026d461 --- /dev/null +++ b/app/Templates/project_new.php @@ -0,0 +1,20 @@ +
+ +
+
+ + + + +
+ + +
+
+
+
\ No newline at end of file diff --git a/app/Templates/project_remove.php b/app/Templates/project_remove.php new file mode 100644 index 00000000..e9f213b5 --- /dev/null +++ b/app/Templates/project_remove.php @@ -0,0 +1,16 @@ +
+ + +
+

+ +

+ +
+ + +
+
+
\ No newline at end of file diff --git a/app/Templates/project_search.php b/app/Templates/project_search.php new file mode 100644 index 00000000..3594fd09 --- /dev/null +++ b/app/Templates/project_search.php @@ -0,0 +1,93 @@ +
+ +
+
+ + + + + +
+ + +

+ + + + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + +
+ + + + + + + +
+
+ + + + + + + + + + + + + + + + + + + +
+ + +
+
\ No newline at end of file diff --git a/app/Templates/project_tasks.php b/app/Templates/project_tasks.php new file mode 100644 index 00000000..9f4263b8 --- /dev/null +++ b/app/Templates/project_tasks.php @@ -0,0 +1,71 @@ +
+ +
+ +

+ + + + + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + +
+ + + + + + + +
+
+ + + + + + + + + + + + + +
+ +
+
\ No newline at end of file diff --git a/app/Templates/project_users.php b/app/Templates/project_users.php new file mode 100644 index 00000000..0448004f --- /dev/null +++ b/app/Templates/project_users.php @@ -0,0 +1,44 @@ +
+ +
+ + +
+ + $project['id'])) ?> + + +
+ +
+ + +
+
+ + +

+ +
+ +
+

+
    + $username): ?> +
  • + + () +
  • + +
+

+
+ + +
+
\ No newline at end of file diff --git a/app/Templates/task_close.php b/app/Templates/task_close.php new file mode 100644 index 00000000..3531b37d --- /dev/null +++ b/app/Templates/task_close.php @@ -0,0 +1,10 @@ +
+

+ +

+ +
+ + +
+
\ No newline at end of file diff --git a/app/Templates/task_edit.php b/app/Templates/task_edit.php new file mode 100644 index 00000000..8c8bc107 --- /dev/null +++ b/app/Templates/task_edit.php @@ -0,0 +1,51 @@ +
+ +
+
+ +
+ + +
+ + +
+
+ +
+ +
+ + + + + +
+ + +
+ + +
+ + +
+ + +
+ + +
+
+ +
+ +
+ + +
+
+
+
\ No newline at end of file diff --git a/app/Templates/task_layout.php b/app/Templates/task_layout.php new file mode 100644 index 00000000..9a6bbd00 --- /dev/null +++ b/app/Templates/task_layout.php @@ -0,0 +1,16 @@ +
+ +
+ + $task)) ?> + +
+ +
+
+
\ No newline at end of file diff --git a/app/Templates/task_new.php b/app/Templates/task_new.php new file mode 100644 index 00000000..d233efd2 --- /dev/null +++ b/app/Templates/task_new.php @@ -0,0 +1,51 @@ +
+ +
+
+ +
+ +
+ + +
+
+ + + + +
+ +
+ + + + +
+ + +
+ + +
+ + +
+ + +
+ + +
+
+
+ +
+ + +
+
+
+
\ No newline at end of file diff --git a/app/Templates/task_open.php b/app/Templates/task_open.php new file mode 100644 index 00000000..54cc11f0 --- /dev/null +++ b/app/Templates/task_open.php @@ -0,0 +1,16 @@ +
+ + +
+

+ +

+ +
+ + +
+
+
\ No newline at end of file diff --git a/app/Templates/task_remove.php b/app/Templates/task_remove.php new file mode 100644 index 00000000..1aa9503b --- /dev/null +++ b/app/Templates/task_remove.php @@ -0,0 +1,10 @@ +
+

+ +

+ +
+ + +
+
\ No newline at end of file diff --git a/app/Templates/task_show.php b/app/Templates/task_show.php new file mode 100644 index 00000000..a5b79359 --- /dev/null +++ b/app/Templates/task_show.php @@ -0,0 +1,94 @@ +
+

+ + + +
    +
  • + +
  • + +
  • + +
  • + + +
  • + +
  • + +
  • + + + + + + + +
  • +
  • + + + () +
  • + +
  • + +
  • + +
  • + + + + + +
  • +
+
+ +

+ +
+ +
+ +
+ + +
+
+ +
+ +
+
+ + +

+ + + + + +
+ + + +
+
+ +
+ +
+
+ \ No newline at end of file diff --git a/app/Templates/task_sidebar.php b/app/Templates/task_sidebar.php new file mode 100644 index 00000000..314d5214 --- /dev/null +++ b/app/Templates/task_sidebar.php @@ -0,0 +1,17 @@ +
+

+
+
    +
  • +
  • +
  • + + + + + +
  • +
  • +
+
+
\ No newline at end of file diff --git a/app/Templates/user_edit.php b/app/Templates/user_edit.php new file mode 100644 index 00000000..c857fe1c --- /dev/null +++ b/app/Templates/user_edit.php @@ -0,0 +1,64 @@ +
+ +
+
+ +
+ + + + + +
+ + +
+ + +
+ + +
+ +
+ +
+ + + + +
+ + +
+ + +
+ + + + +
+ + + + + + + + + + +
+ +
+ +
+
+
+
\ No newline at end of file diff --git a/app/Templates/user_forbidden.php b/app/Templates/user_forbidden.php new file mode 100644 index 00000000..853159ba --- /dev/null +++ b/app/Templates/user_forbidden.php @@ -0,0 +1,9 @@ +
+ + +

+ +

+
\ No newline at end of file diff --git a/app/Templates/user_index.php b/app/Templates/user_index.php new file mode 100644 index 00000000..f6302a6b --- /dev/null +++ b/app/Templates/user_index.php @@ -0,0 +1,56 @@ +
+ +
+ +

+ + + + + + + + + + + + + + + + + + + + +
+ + + + + + + + + + + + + + + 1): ?> + + + + +
+ +
+
diff --git a/app/Templates/user_login.php b/app/Templates/user_login.php new file mode 100644 index 00000000..878170e3 --- /dev/null +++ b/app/Templates/user_login.php @@ -0,0 +1,28 @@ + + + +

+ + + \ No newline at end of file diff --git a/app/Templates/user_new.php b/app/Templates/user_new.php new file mode 100644 index 00000000..6ad976f2 --- /dev/null +++ b/app/Templates/user_new.php @@ -0,0 +1,45 @@ +
+ +
+
+ +
+ + +
+ + +
+ + +
+ + +
+ +
+ +
+ + +
+ + +
+ + + +
+ +
+ + +
+
+
+
\ No newline at end of file diff --git a/app/Templates/user_remove.php b/app/Templates/user_remove.php new file mode 100644 index 00000000..a4db2e4a --- /dev/null +++ b/app/Templates/user_remove.php @@ -0,0 +1,14 @@ +
+ + +
+

+ +
+ + +
+
+
\ No newline at end of file -- cgit v1.2.3