FinanceBuddy: card money badge on line 3 (v0.3.1)

This commit is contained in:
2026-07-07 16:59:11 -03:00
parent 2c9ef4ce7d
commit 6c23c4aeb2
5 changed files with 94 additions and 10 deletions

View File

@@ -28,6 +28,11 @@ class Plugin extends Base
$this->hook->on('model:task:creation:prepare', array($persistence, 'onCreationPrepare'));
$this->hook->on('model:task:creation:aftersave', array($persistence, 'onCreationAfterSave'));
$this->hook->on('model:task:modification:prepare', array($persistence, 'onModificationPrepare'));
// The line-3 money badge on each board card, rendered directly under the title. Two hooks:
// "private" is the normal board, "public" is the read-only board shared by token.
$this->template->hook->attach('template:board:private:task:after-title', 'financeBuddy:board/task_money');
$this->template->hook->attach('template:board:public:task:after-title', 'financeBuddy:board/task_money');
}
public function getHelpers()
@@ -54,7 +59,7 @@ class Plugin extends Base
public function getPluginVersion()
{
return '0.3.0';
return '0.3.1';
}
public function getPluginHomepage()