FinanceBuddy: per-board opt-in gate on Integrations page (v0.3)
This commit is contained in:
11
Plugin.php
11
Plugin.php
@@ -13,6 +13,17 @@ class Plugin extends Base
|
|||||||
$this->hook->on('template:layout:css', array(
|
$this->hook->on('template:layout:css', array(
|
||||||
'template' => 'plugins/FinanceBuddy/Asset/css/finance.css',
|
'template' => 'plugins/FinanceBuddy/Asset/css/finance.css',
|
||||||
));
|
));
|
||||||
|
|
||||||
|
// Per-board opt-in: a checkbox on the project's Settings -> Integrations page. Nothing
|
||||||
|
// else in the plugin renders or saves until a project manager enables it for that board.
|
||||||
|
$this->template->hook->attach('template:project:integrations', 'financeBuddy:project/integration');
|
||||||
|
}
|
||||||
|
|
||||||
|
public function getHelpers()
|
||||||
|
{
|
||||||
|
return array(
|
||||||
|
'Plugin\FinanceBuddy\Helper' => array('FinanceHelper'),
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getPluginName()
|
public function getPluginName()
|
||||||
|
|||||||
Reference in New Issue
Block a user