-
@@ -32,4 +29,7 @@
= $content_for_sublayout ?>
diff --git a/app/Controller/App.php b/app/Controller/App.php
index 8a97e8c74..5c9c45b55 100644
--- a/app/Controller/App.php
+++ b/app/Controller/App.php
@@ -93,16 +93,6 @@ class App extends Base
$this->response->html($this->helper->text->markdown($payload['text']));
}
- /**
- * Colors stylesheet
- *
- * @access public
- */
- public function colors()
- {
- $this->response->css($this->color->getCss());
- }
-
/**
* Task autocompletion (Ajax)
*
diff --git a/app/Helper/Asset.php b/app/Helper/Asset.php
index fe2850810..1b1e47c56 100644
--- a/app/Helper/Asset.php
+++ b/app/Helper/Asset.php
@@ -16,9 +16,9 @@ class Asset extends \Core\Base
* @param string $filename Filename
* @return string
*/
- public function js($filename)
+ public function js($filename, $async = false)
{
- return '';
+ return '';
}
/**
@@ -48,4 +48,15 @@ class Asset extends \Core\Base
return '';
}
+
+ /**
+ * Get CSS for task colors
+ *
+ * @access public
+ * @return string
+ */
+ public function colorCss()
+ {
+ return '';
+ }
}
diff --git a/app/Model/Acl.php b/app/Model/Acl.php
index 909441287..c9e155edf 100644
--- a/app/Model/Acl.php
+++ b/app/Model/Acl.php
@@ -21,7 +21,6 @@ class Acl extends Base
'user' => array('google', 'github'),
'task' => array('readonly'),
'board' => array('readonly'),
- 'app' => array('colors'),
'webhook' => '*',
'ical' => '*',
'feed' => '*',
diff --git a/app/Template/analytic/layout.php b/app/Template/analytic/layout.php
index 72aab4d8c..41c6a2ab9 100644
--- a/app/Template/analytic/layout.php
+++ b/app/Template/analytic/layout.php
@@ -1,6 +1,3 @@
-= $this->asset->js('assets/js/vendor/d3.v3.min.js') ?>
-= $this->asset->js('assets/js/vendor/c3.min.js') ?>
-
@@ -32,4 +29,7 @@
= $content_for_sublayout ?>
= t('There is not enough data to show something.') ?>
+ += $this->asset->js('assets/js/vendor/d3.v3.min.js') ?> += $this->asset->js('assets/js/vendor/c3.min.js') ?> \ No newline at end of file diff --git a/app/Template/layout.php b/app/Template/layout.php index 0d9326f43..c630132d2 100644 --- a/app/Template/layout.php +++ b/app/Template/layout.php @@ -12,12 +12,12 @@ - = $this->asset->js('assets/js/app.js') ?> + = $this->asset->js('assets/js/app.js', true) ?> - = $this->asset->css($this->url->href('app', 'colors'), false, 'all') ?> = $this->asset->css('assets/css/app.css') ?> = $this->asset->css('assets/css/print.css', true, 'print') ?> + = $this->asset->colorCss() ?> = $this->asset->customCss() ?> diff --git a/tests/units/AclTest.php b/tests/units/AclTest.php index c74a90ca6..72c897c0c 100644 --- a/tests/units/AclTest.php +++ b/tests/units/AclTest.php @@ -37,7 +37,6 @@ class AclTest extends Base $acl = new Acl($this->container); $this->assertTrue($acl->isPublicAction('board', 'readonly')); $this->assertFalse($acl->isPublicAction('board', 'show')); - $this->assertTrue($acl->isPublicAction('app', 'colors')); $this->assertTrue($acl->isPublicAction('feed', 'project')); $this->assertTrue($acl->isPublicAction('feed', 'user')); }