From 8e5673e3d289e4d28b4fc9f20721bda9f1c858c7 Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Sat, 4 Oct 2014 23:31:03 -0400 Subject: Improve settings page and move some config parameters to the database --- app/Templates/board_index.php | 8 ++- app/Templates/board_show.php | 4 +- app/Templates/config_about.php | 41 +++++++++++++ app/Templates/config_api.php | 18 ++++++ app/Templates/config_application.php | 23 +++++++ app/Templates/config_board.php | 29 +++++++++ app/Templates/config_index.php | 71 ---------------------- app/Templates/config_layout.php | 13 ++++ app/Templates/config_sidebar.php | 22 +++++++ app/Templates/config_webhook.php | 38 ++++++++++++ app/Templates/layout.php | 4 +- app/Templates/notification_comment_creation.php | 2 +- app/Templates/notification_comment_update.php | 2 +- app/Templates/notification_file_creation.php | 2 +- app/Templates/notification_footer.php | 4 +- app/Templates/notification_subtask_creation.php | 2 +- app/Templates/notification_subtask_update.php | 2 +- .../notification_task_assignee_change.php | 2 +- app/Templates/notification_task_close.php | 2 +- app/Templates/notification_task_creation.php | 2 +- app/Templates/notification_task_due.php | 2 +- app/Templates/notification_task_move_column.php | 2 +- app/Templates/notification_task_move_position.php | 2 +- app/Templates/notification_task_open.php | 2 +- app/Templates/notification_task_update.php | 2 +- app/Templates/project_share.php | 2 +- app/Templates/project_show.php | 2 +- app/Templates/user_external.php | 4 +- app/Templates/user_show.php | 2 +- 29 files changed, 215 insertions(+), 96 deletions(-) create mode 100644 app/Templates/config_about.php create mode 100644 app/Templates/config_api.php create mode 100644 app/Templates/config_application.php create mode 100644 app/Templates/config_board.php delete mode 100644 app/Templates/config_index.php create mode 100644 app/Templates/config_layout.php create mode 100644 app/Templates/config_sidebar.php create mode 100644 app/Templates/config_webhook.php (limited to 'app/Templates') diff --git a/app/Templates/board_index.php b/app/Templates/board_index.php index da40468d..bff7dcc9 100644 --- a/app/Templates/board_index.php +++ b/app/Templates/board_index.php @@ -26,7 +26,13 @@

- $current_project_id, 'board' => $board, 'categories' => $categories)) ?> + $current_project_id, + 'board' => $board, + 'categories' => $categories, + 'board_private_refresh_interval' => $board_private_refresh_interval, + 'board_highlight_period' => $board_highlight_period, + )) ?> diff --git a/app/Templates/board_show.php b/app/Templates/board_show.php index e91ab4cf..e8c3c1ba 100644 --- a/app/Templates/board_show.php +++ b/app/Templates/board_show.php @@ -1,4 +1,4 @@ -> +
> @@ -32,7 +32,7 @@ data-task-limit="" > -
+

+
+
+ +
+ + +
+ +
\ No newline at end of file diff --git a/app/Templates/config_api.php b/app/Templates/config_api.php new file mode 100644 index 00000000..037ea08d --- /dev/null +++ b/app/Templates/config_api.php @@ -0,0 +1,18 @@ + +
+ +
\ No newline at end of file diff --git a/app/Templates/config_application.php b/app/Templates/config_application.php new file mode 100644 index 00000000..251a45dc --- /dev/null +++ b/app/Templates/config_application.php @@ -0,0 +1,23 @@ + +
+
+ + + + +
+

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

+ + +
+

+ + +
+

+ + +
+

+ +
+ +
+ +
\ No newline at end of file diff --git a/app/Templates/config_index.php b/app/Templates/config_index.php deleted file mode 100644 index 2d9ce116..00000000 --- a/app/Templates/config_index.php +++ /dev/null @@ -1,71 +0,0 @@ -
- - -
-
- - - - -
- - -
- - -
- - -
- - -
-

- -
- -
- -
- - -
- -
-
diff --git a/app/Templates/config_layout.php b/app/Templates/config_layout.php new file mode 100644 index 00000000..3aacb9b7 --- /dev/null +++ b/app/Templates/config_layout.php @@ -0,0 +1,13 @@ +
+ +
+ + + +
+ +
+
+
\ No newline at end of file diff --git a/app/Templates/config_sidebar.php b/app/Templates/config_sidebar.php new file mode 100644 index 00000000..d96159b8 --- /dev/null +++ b/app/Templates/config_sidebar.php @@ -0,0 +1,22 @@ +
+

+
+
    +
  • + +
  • +
  • + +
  • +
  • + +
  • +
  • + +
  • +
  • + +
  • +
+
+
\ No newline at end of file diff --git a/app/Templates/config_webhook.php b/app/Templates/config_webhook.php new file mode 100644 index 00000000..052a2a99 --- /dev/null +++ b/app/Templates/config_webhook.php @@ -0,0 +1,38 @@ + +
+
+ + + + +
+ + +
+ +
+ +
+ +
+ + +
+ +
\ No newline at end of file diff --git a/app/Templates/layout.php b/app/Templates/layout.php index e0158dfb..434c5aca 100644 --- a/app/Templates/layout.php +++ b/app/Templates/layout.php @@ -6,8 +6,8 @@ - - + + diff --git a/app/Templates/notification_comment_creation.php b/app/Templates/notification_comment_creation.php index fac6ea25..5b334d76 100644 --- a/app/Templates/notification_comment_creation.php +++ b/app/Templates/notification_comment_creation.php @@ -4,4 +4,4 @@ - $task)) ?> \ No newline at end of file + $task, 'application_url' => $application_url)) ?> \ No newline at end of file diff --git a/app/Templates/notification_comment_update.php b/app/Templates/notification_comment_update.php index 92c06ffb..04aafb85 100644 --- a/app/Templates/notification_comment_update.php +++ b/app/Templates/notification_comment_update.php @@ -4,4 +4,4 @@ - $task)) ?> \ No newline at end of file + $task, 'application_url' => $application_url)) ?> \ No newline at end of file diff --git a/app/Templates/notification_file_creation.php b/app/Templates/notification_file_creation.php index 50f4a2d5..d8636820 100644 --- a/app/Templates/notification_file_creation.php +++ b/app/Templates/notification_file_creation.php @@ -2,4 +2,4 @@

- $task)) ?> \ No newline at end of file + $task, 'application_url' => $application_url)) ?> \ No newline at end of file diff --git a/app/Templates/notification_footer.php b/app/Templates/notification_footer.php index f0c9c0d4..533621f4 100644 --- a/app/Templates/notification_footer.php +++ b/app/Templates/notification_footer.php @@ -1,6 +1,6 @@
Kanboard - - - . + + - . diff --git a/app/Templates/notification_subtask_creation.php b/app/Templates/notification_subtask_creation.php index c382355c..2ddfc649 100644 --- a/app/Templates/notification_subtask_creation.php +++ b/app/Templates/notification_subtask_creation.php @@ -14,4 +14,4 @@ - $task)) ?> \ No newline at end of file + $task, 'application_url' => $application_url)) ?> \ No newline at end of file diff --git a/app/Templates/notification_subtask_update.php b/app/Templates/notification_subtask_update.php index ad6dfdc9..999edbf9 100644 --- a/app/Templates/notification_subtask_update.php +++ b/app/Templates/notification_subtask_update.php @@ -18,4 +18,4 @@ - $task)) ?> \ No newline at end of file + $task, 'application_url' => $application_url)) ?> \ No newline at end of file diff --git a/app/Templates/notification_task_assignee_change.php b/app/Templates/notification_task_assignee_change.php index 65194f1e..d23f769e 100644 --- a/app/Templates/notification_task_assignee_change.php +++ b/app/Templates/notification_task_assignee_change.php @@ -17,4 +17,4 @@ - $task)) ?> \ No newline at end of file + $task, 'application_url' => $application_url)) ?> \ No newline at end of file diff --git a/app/Templates/notification_task_close.php b/app/Templates/notification_task_close.php index d9b2dce6..d56e71bb 100644 --- a/app/Templates/notification_task_close.php +++ b/app/Templates/notification_task_close.php @@ -2,4 +2,4 @@

- $task)) ?> \ No newline at end of file + $task, 'application_url' => $application_url)) ?> \ No newline at end of file diff --git a/app/Templates/notification_task_creation.php b/app/Templates/notification_task_creation.php index 43b3b291..1b555096 100644 --- a/app/Templates/notification_task_creation.php +++ b/app/Templates/notification_task_creation.php @@ -40,4 +40,4 @@ - $task)) ?> \ No newline at end of file + $task, 'application_url' => $application_url)) ?> \ No newline at end of file diff --git a/app/Templates/notification_task_due.php b/app/Templates/notification_task_due.php index 25ecc9f1..ae02f64e 100644 --- a/app/Templates/notification_task_due.php +++ b/app/Templates/notification_task_due.php @@ -12,4 +12,4 @@ - $task)) ?> \ No newline at end of file + $task, 'application_url' => $application_url)) ?> \ No newline at end of file diff --git a/app/Templates/notification_task_move_column.php b/app/Templates/notification_task_move_column.php index 026db776..c3f94df7 100644 --- a/app/Templates/notification_task_move_column.php +++ b/app/Templates/notification_task_move_column.php @@ -8,4 +8,4 @@
  • - $task)) ?> \ No newline at end of file + $task, 'application_url' => $application_url)) ?> \ No newline at end of file diff --git a/app/Templates/notification_task_move_position.php b/app/Templates/notification_task_move_position.php index 026db776..c3f94df7 100644 --- a/app/Templates/notification_task_move_position.php +++ b/app/Templates/notification_task_move_position.php @@ -8,4 +8,4 @@
  • - $task)) ?> \ No newline at end of file + $task, 'application_url' => $application_url)) ?> \ No newline at end of file diff --git a/app/Templates/notification_task_open.php b/app/Templates/notification_task_open.php index 7bf674cc..5d9f7d5b 100644 --- a/app/Templates/notification_task_open.php +++ b/app/Templates/notification_task_open.php @@ -2,4 +2,4 @@

    - $task)) ?> \ No newline at end of file + $task, 'application_url' => $application_url)) ?> \ No newline at end of file diff --git a/app/Templates/notification_task_update.php b/app/Templates/notification_task_update.php index 9fd61b57..b3c07911 100644 --- a/app/Templates/notification_task_update.php +++ b/app/Templates/notification_task_update.php @@ -40,4 +40,4 @@ - $task)) ?> \ No newline at end of file + $task, 'application_url' => $application_url)) ?> \ No newline at end of file diff --git a/app/Templates/project_share.php b/app/Templates/project_share.php index 6cfd85f6..f06d7671 100644 --- a/app/Templates/project_share.php +++ b/app/Templates/project_share.php @@ -4,7 +4,7 @@ -
    +
    • diff --git a/app/Templates/project_show.php b/app/Templates/project_show.php index 98ffb581..96b9e404 100644 --- a/app/Templates/project_show.php +++ b/app/Templates/project_show.php @@ -1,7 +1,7 @@ -
        +
        • diff --git a/app/Templates/user_external.php b/app/Templates/user_external.php index a67d886e..676b2c73 100644 --- a/app/Templates/user_external.php +++ b/app/Templates/user_external.php @@ -5,7 +5,7 @@

          -

          +

          @@ -21,7 +21,7 @@

          -

          +

          diff --git a/app/Templates/user_show.php b/app/Templates/user_show.php index 5d42d3cf..1c843751 100644 --- a/app/Templates/user_show.php +++ b/app/Templates/user_show.php @@ -1,7 +1,7 @@

          -
            +
            • -- cgit v1.2.3