mastery badge + fix Integrations helper access (restores Reset button) (v0.5.0) t1

This commit is contained in:
2026-07-11 15:49:23 -03:00
parent e1e4c36180
commit 2fff0af063
2 changed files with 30 additions and 0 deletions

12
Template/board/badge.php Normal file
View File

@@ -0,0 +1,12 @@
<?php
// Mastery badge under the card title on a QualKard board. Server-rendered (survives board refresh).
// Yellow "new" for an unread card; otherwise a percent of 5, red (<50) / green (<90) / blue (>=90).
if (empty($task['project_id']) || ! $this->QualKardHelper->isEnabled($task['project_id'])) {
return;
}
$b = $this->QualKardHelper->cardBadge($task['id']);
?>
<div class="qk-line">
<span class="qk-badge <?= $b['class'] ?>"><?= $this->text->e($b['label']) ?></span>
</div>