ui: fix star in training_detail (fix #1024)

This commit is contained in:
undefined committed 2025-07-31 16:38:21 +08:00
1 parent f1659977ec
commit 5597bfa1e2
1 file changed
+1 -1
@@ -118,7 +118,7 @@
{% endif %}
{% endif %}
{% endif %}
<td class="col--name col--problem-name"{% if handler.user.hasPriv(PRIV.PRIV_USER_PROFILE) %} data-star="{{ psdoc.star }}"{% endif %}>
<td class="col--name col--problem-name"{% if handler.user.hasPriv(PRIV.PRIV_USER_PROFILE) %} data-star-action="{{ url('problem_detail', pid=pdoc.docId) }}" data-star="{{ psdoc.star }}"{% endif %}>
{{ problem.render_problem_title(
pdoc,
invalid=not tsdoc['enroll'] or nsdict[node['_id']]['isInvalid'],