summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/Controller/Board.php1
-rw-r--r--app/Controller/Task.php1
-rw-r--r--app/Templates/layout.php20
-rw-r--r--app/common.php2
4 files changed, 14 insertions, 10 deletions
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 @@
<html>
<head>
<meta charset="utf-8">
-
<meta name="viewport" content="width=device-width">
<meta name="mobile-web-app-capable" content="yes">
<meta name="robots" content="noindex,nofollow">
- <?= Helper\js('assets/js/jquery-1.11.1.min.js') ?>
- <?= Helper\js('assets/js/jquery-ui-1.10.4.custom.min.js') ?>
- <?= Helper\js('assets/js/jquery.ui.touch-punch.min.js') ?>
- <?= Helper\js('assets/js/chosen.jquery.min.js') ?>
- <?= Helper\js('assets/js/app.js') ?>
+ <?php if (isset($auto_refresh)): ?>
+ <meta http-equiv="refresh" content="<?= BOARD_PUBLIC_CHECK_INTERVAL ?>" >
+ <?php endif ?>
+
+ <?php if (! isset($not_editable)): ?>
+ <?= Helper\js('assets/js/jquery-1.11.1.min.js') ?>
+ <?= Helper\js('assets/js/jquery-ui-1.10.4.custom.min.js') ?>
+ <?= Helper\js('assets/js/jquery.ui.touch-punch.min.js') ?>
+ <?= Helper\js('assets/js/chosen.jquery.min.js') ?>
+ <?= Helper\js('assets/js/app.js') ?>
+ <?php endif ?>
<?= Helper\css('assets/css/app.css') ?>
<?= Helper\css('assets/css/font-awesome.min.css') ?>
@@ -25,9 +30,6 @@
<link rel="apple-touch-icon" sizes="144x144" href="assets/img/touch-icon-ipad-retina.png">
<title><?= isset($title) ? Helper\escape($title).' - Kanboard' : 'Kanboard' ?></title>
- <?php if (isset($auto_refresh)): ?>
- <meta http-equiv="refresh" content="<?= BOARD_PUBLIC_CHECK_INTERVAL ?>" >
- <?php endif ?>
</head>
<body>
<?php if (isset($no_layout) && $no_layout): ?>
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(); };