diff options
Diffstat (limited to 'app/Templates/layout.php')
-rw-r--r-- | app/Templates/layout.php | 20 |
1 files changed, 11 insertions, 9 deletions
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): ?> |