From 990b56b701aab89eaf0f228eec25eb9e9c5dd6ec Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sat, 24 Jun 2017 10:51:43 +0200 Subject: [PATCH] Fixing templates --- Admin/Install/Navigation.install.json | 45 ++++++++++++++++++++++++++ Admin/Routes/Web/Backend.php | 6 ++++ Theme/Backend/kanban-dashboard.tpl.php | 4 ++- 3 files changed, 54 insertions(+), 1 deletion(-) diff --git a/Admin/Install/Navigation.install.json b/Admin/Install/Navigation.install.json index 4032071..120bca9 100644 --- a/Admin/Install/Navigation.install.json +++ b/Admin/Install/Navigation.install.json @@ -13,6 +13,51 @@ "permission": null, "parent": 1003301001, "children": [ + { + "id": 1005802001, + "pid": "7322d5765c8b18b14c20d406e89c628fd0998688", + "type": 3, + "subtype": 1, + "name": "Boards", + "uri": "{/base}/{/lang}/backend/kanban/dashboard?{?}", + "target": "self", + "icon": null, + "order": 1, + "from": "Kanban", + "permission": null, + "parent": 1005801001, + "children": [] + }, + { + "id": 1005803001, + "pid": "7322d5765c8b18b14c20d406e89c628fd0998688", + "type": 3, + "subtype": 1, + "name": "Archive", + "uri": "{/base}/{/lang}/backend/kanban/archive?{?}", + "target": "self", + "icon": null, + "order": 2, + "from": "Kanban", + "permission": null, + "parent": 1005801001, + "children": [] + }, + { + "id": 1005804001, + "pid": "7322d5765c8b18b14c20d406e89c628fd0998688", + "type": 3, + "subtype": 1, + "name": "Archive", + "uri": "{/base}/{/lang}/backend/kanban/create?{?}", + "target": "self", + "icon": null, + "order": 3, + "from": "Kanban", + "permission": null, + "parent": 1005801001, + "children": [] + } ] } ] diff --git a/Admin/Routes/Web/Backend.php b/Admin/Routes/Web/Backend.php index 367868d..3da732c 100644 --- a/Admin/Routes/Web/Backend.php +++ b/Admin/Routes/Web/Backend.php @@ -9,6 +9,12 @@ return [ 'verb' => RouteVerb::GET, ], ], + '^.*/backend/kanban/archive.*$' => [ + [ + 'dest' => '\Modules\Kanban\Controller:viewKanbanArchive', + 'verb' => RouteVerb::GET, + ], + ], '^.*/backend/kanban/board.*$' => [ [ 'dest' => '\Modules\Kanban\Controller:viewKanbanBoard', diff --git a/Theme/Backend/kanban-dashboard.tpl.php b/Theme/Backend/kanban-dashboard.tpl.php index 0778015..2b9accf 100644 --- a/Theme/Backend/kanban-dashboard.tpl.php +++ b/Theme/Backend/kanban-dashboard.tpl.php @@ -1,6 +1,8 @@ getData('boards'); -?> + +echo $this->getData('nav')->render(); ?> +