From aca4207a94200ce4033de57baabc69afe5e3804e Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Tue, 16 Sep 2014 15:05:07 +0200 Subject: Don't load Javascript assets for public board access --- app/Controller/Board.php | 1 + app/Controller/Task.php | 1 + app/Templates/layout.php | 20 +++++++++++--------- app/common.php | 2 +- 4 files changed, 14 insertions(+), 10 deletions(-) (limited to 'app') diff --git a/app/Controller/Board.php b/app/Controller/Board.php index d160380e..2ee43c76 100644 --- a/app/Controller/Board.php +++ b/app/Controller/Board.php @@ -178,6 +178,7 @@ class Board extends Base 'title' => $project['name'], 'no_layout' => true, 'auto_refresh' => true, + 'not_editable' => true, ))); } diff --git a/app/Controller/Task.php b/app/Controller/Task.php index b0bb9d5b..ef55fb57 100644 --- a/app/Controller/Task.php +++ b/app/Controller/Task.php @@ -76,6 +76,7 @@ class Task extends Base 'title' => $task['title'], 'no_layout' => true, 'auto_refresh' => true, + 'not_editable' => true, ))); } diff --git a/app/Templates/layout.php b/app/Templates/layout.php index f2082db7..c405777f 100644 --- a/app/Templates/layout.php +++ b/app/Templates/layout.php @@ -2,16 +2,21 @@ - - - - - - + + + + + + + + + + + @@ -25,9 +30,6 @@ <?= isset($title) ? Helper\escape($title).' - Kanboard' : 'Kanboard' ?> - - - diff --git a/app/common.php b/app/common.php index 0ba7df9d..1ace3d81 100644 --- a/app/common.php +++ b/app/common.php @@ -29,4 +29,4 @@ $loader->execute(); $registry = new Registry; $registry->db = setup_db(); $registry->event = setup_events(); -$registry->mailer = setup_mailer(); +$registry->mailer = function() { return setup_mailer(); }; -- cgit v1.2.3