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

This commit is contained in:
2026-07-11 15:46:23 -03:00
parent 8648b67061
commit e1e4c36180
4 changed files with 25 additions and 4 deletions

View File

@@ -1,10 +1,10 @@
<h3><i class="fa fa-graduation-cap fa-fw" aria-hidden="true"></i> <?= t('QualKard') ?></h3>
<div class="listing">
<?php if (! $this->helper->QualKardHelper->hasRecoReco()): ?>
<?php if (! $this->QualKardHelper->hasRecoReco()): ?>
<p class="form-help"><?= t('QualKard needs the RecoReco plugin (its move engine). Install RecoReco to use QualKard.') ?></p>
<?php elseif (! $this->helper->QualKardHelper->isEnabled($project['id'])): ?>
<?php elseif (! $this->QualKardHelper->isEnabled($project['id'])): ?>
<p class="form-help"><?= t('Turn this project into a spaced-repetition study board. This restructures the columns to Drafts | Study | Hairy | Hard | Medium | Easy | Done and moves every card to Drafts.') ?></p>
<form method="post" action="<?= $this->url->href('QualKardController', 'setup', array('plugin' => 'QualKard', 'project_id' => $project['id'])) ?>" onsubmit="return confirm('<?= t('This restructures the board and moves all cards to Drafts. Continue?') ?>');">