core&ui: fix star

This commit is contained in:
undefined committed 2024-10-22 07:01:54 +08:00
1 parent 5d845f1471
commit c76ada120b
7 files changed
+24 -47

No files matched your search

@@ -6,7 +6,7 @@
</div>
<div class="section__body typo no-media col--problem-name">
{%- for pdoc in pdocs -%}
<p data-pid="{{ pdoc.docId }}" data-star="true">
<p data-action="{{ url('problem_detail', pid=pdoc.docId) }}" data-star="true">
{{ problem.render_problem_title(pdoc, show_tags=false, show_invisible_flag=false) }}
</p>
{%- endfor -%}
@@ -54,7 +54,7 @@
<td class="col--status record-status--border edit-mode-hide"></td>
{% 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" data-action="{{ url('problem_detail', docId=pdoc.docId) }}" {% if handler.user.hasPriv(PRIV.PRIV_USER_PROFILE) %} data-star="{{ psdoc.star }}"{% endif %}>
{{ problem.render_problem_title(pdoc) }}
</td>
<td class="col--ac-tried">{{ pdoc.nAccept }} / {{ pdoc.nSubmit }}</td>