15 |
--------------------------------------------------------------------------------
/Assets/images/license.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/Assets/images/version.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/Assets/images/maintained.svg:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/Assets/css/subtasksonboard.css:
--------------------------------------------------------------------------------
1 | .table-suboncard {
2 | margin-top: 10px;
3 | margin-bottom: 10px;
4 | border-top-style: solid;
5 | border-top-width: 12px;
6 | border-top-color: transparent;
7 | border-bottom-style: solid;
8 | border-bottom-width: 12px;
9 | border-bottom-color: transparent;
10 | }
11 |
12 | .table-suboncard td:nth-child(1) {
13 | font-size: .8em;
14 | padding-right: 25px;
15 | text-align: left;
16 | background-color: rgba(190, 190, 190, 0.1)!important;
17 | border: 0;
18 | padding-top: 0;
19 | }
20 |
21 |
22 | /* if Plugin "SubTaskDuedate is available, format date column */
23 | .table-suboncard td:nth-child(2) {
24 | font-size: .8em;
25 | padding-right: 4px;
26 | background-color: rgba(190, 190, 190, 0.1)!important;
27 | border: 0;
28 | padding-top: 0;
29 | }
30 |
31 | /* nested html tags from Kanboard subtaskhelper are somehow complicated to format */
32 | .table-suboncard .js-subtask-toggle-status {
33 | display: unset;
34 | }
35 |
36 | .table-suboncard .subtask-title i {
37 | display: flex;
38 | margin-left: 4px;
39 | }
40 |
41 | .table-suboncard .subtask-title a {
42 | display: -webkit-box;
43 | }
44 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | The MIT License (MIT)
2 |
3 | Copyright (c) 2021,2023 JustFxDev (Fx), rfde
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in
13 | all copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21 | THE SOFTWARE.
22 |
--------------------------------------------------------------------------------
/Plugin.php:
--------------------------------------------------------------------------------
1 | helper->register('subtasklistHelper', '\Kanboard\Plugin\SubtasksOnBoard\Helper\SubtasklistHelper');
13 | $this->template->hook->attach('template:board:private:task:after-title', 'SubtasksOnBoard:board/subtasklist');
14 | $this->hook->on("template:layout:css", array("template" => "plugins/SubtasksOnBoard/Assets/css/subtasksonboard.css"));
15 | }
16 |
17 | public function onStartup()
18 | {
19 | Translator::load($this->languageModel->getCurrentLanguage(), __DIR__.'/Locale');
20 | }
21 |
22 | public function getPluginName()
23 | {
24 | // Plugin Name MUST be identical to namespace for Plugin Directory to detect updated versions
25 | // Do not translate the plugin name here
26 | return 'SubtasksOnBoard';
27 | }
28 |
29 | public function getPluginDescription()
30 | {
31 | return t('Displays the subtasks of a task on the task card on the board. One can change state of a subtask directly on the card. Supports display of subtask duedate if the plugin "Subtaskdate" is installed.');
32 | }
33 |
34 | public function getPluginAuthor()
35 | {
36 | return 'JustFxDev, Till Schlueter';
37 | }
38 |
39 | public function getPluginVersion()
40 | {
41 | return '1.0.9';
42 | }
43 |
44 | public function getCompatibleVersion()
45 | {
46 | // Examples:
47 | // >=1.0.37
48 | // <1.0.37
49 | // <=1.0.37
50 | return '>=1.2.20';
51 | }
52 |
53 | public function getPluginHomepage()
54 | {
55 | return 'https://github.com/JustFxDev/SubtaskOnBoard';
56 | }
57 | }
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 |  Use the table of contents icon
2 |
3 | [](https://github.com/JustFxDev/SubtasksOnBoard/releases) [](https://github.com/JustFxDev/SubtasksOnBoard/blob/main/LICENSE) [](https://github.com/JustFxDev/SubtasksOnBoard/graphs/contributors)
4 |
5 | **:star: If you use it, you should star it on GitHub!** *It's the least you can do for all the work put into it!*
6 |
7 |
8 | # Show Subtasks on Board
9 |
10 | Displays the subtasks of a task on the task card on the board. One can change state of a subtask directly on the card. Supports display of [subtask due date](https://github.com/eSkiSo/Subtaskdate) if that plugin is installed.
11 |
12 | ## Features
13 |
14 | - Set the status of a subtask directly on the card (not yet started, in progress, finished)
15 |
16 | - display due date of the sub task (needs the subtask due date plugin s. above)
17 |
18 | - Tested with [ThemeMaestro](https://github.com/JustFxDev/ThemeMaestro)
19 |
20 | ## Screenshots
21 |
22 | 
23 |
24 | Requirements
25 | ------------
26 |
27 | - Kanboard >= 1.2.20
28 |
29 | ## Installation
30 |
31 | Options for the installation:
32 |
33 | 1. Installation via the plugin manager in Kanboard (recommended).
34 | 2. Download the zip file from releases folder here in the repository and unzip it in the directory `plugins/SubtasksOnBoard` (recommended)
35 | 3. Clone the repository (current master) into the directory `plugins/SubtasksOnBoard` (not recommended. Very latest code, but not yet released code)
36 |
37 | Note: All names in the plugin directory are case-sensitive
38 |
39 | ## Possible further development
40 |
41 | - Provide configuration option to enable or disable the display of subtasks on cards per board
42 |
43 | ## Authors & Contributors
44 | - [JustFxDev](https://github.com/JustFxDev/) - Author (since v1.0.9)
45 | - [rfde](https://github.com/rfde) - Author (until v1.0.0)
46 | - _Contributors welcome_
47 |
48 | ## License
49 | - This project is distributed under the [MIT License](../main/LICENSE "Read The MIT license")
50 |
--------------------------------------------------------------------------------