f2 comment icon always on, v0.3

This commit is contained in:
2026-07-05 10:20:45 -03:00
parent d47809c713
commit 230982dd4c
7 changed files with 104 additions and 3 deletions

View File

@@ -16,6 +16,16 @@ class Plugin extends Base
$this->hook->on('template:layout:js', array(
'template' => 'plugins/OrganonTweaks/Asset/js/relocate.js',
));
// Settings page for the plugin's tweaks.
$this->template->hook->attach('template:config:sidebar', 'organonTweaks:config/sidebar');
// Tweak: always show a comment icon on board cards. When a card has no comments
// yet, add a bubble "+" that opens the same comment modal (add the first comment
// straight from the board). Cards with comments already show the native count.
if ((int) $this->configModel->get('organon_tweaks_always_comment_icon', 1) === 1) {
$this->template->hook->attach('template:board:task:icons', 'organonTweaks:board/task_comment_icon');
}
}
public function getHelpers()
@@ -32,7 +42,7 @@ class Plugin extends Base
public function getPluginDescription()
{
return t('Umbrella plugin for small Kanboard tweaks. First tweak: remove an empty board column from its header menu.');
return t('Umbrella plugin for small Kanboard tweaks: remove an empty board column, always show the card comment icon, and more.');
}
public function getPluginAuthor()
@@ -42,7 +52,7 @@ class Plugin extends Base
public function getPluginVersion()
{
return '0.2.0';
return '0.3.0';
}
public function getPluginHomepage()