core&ui: allow missing problem in training (fix #542)

This commit is contained in:
undefined committed 2025-12-05 18:31:56 +08:00
1 parent 0fb7222ddf
commit 242fa35500
3 files changed
+10 -2

No files matched your search

@@ -55,6 +55,12 @@
<p>{{ _('page.training_detail.invalid_when_not_enrolled') }}</p>
</blockquote>
{% endif %}
{% if missing.length %}
<blockquote class="warn">
<p>{{ _('Some problems in the training are missing or you do not have permission to view them.') }}</p>
<p>{{ missing|join(', ') }}</p>
</blockquote>
{% endif %}
{{ tdoc.description|default('')|markdown|safe }}
</div>
</div>