使用url()来构建url

This commit is contained in:
masnn committed 2020-06-12 13:37:19 +08:00
1 parent 0efac48bde
commit 86f67a0ec3
61 files changed
+262 -275

No files matched your search

+2 -2
View File
@@ -4,7 +4,7 @@
{{ record.render_status_td(rdoc) }}
<td class="col--problem col--problem-name">
{% if handler.hasPerm(perm.PERM_REJUDGE) %}
<form class="form--inline" method="post" action="/r/{{ rdoc._id }}/rejudge">
<form class="form--inline" method="post" action="{{ url('record_rejudge', rid=rdoc._id) }}">
<input type="hidden" name="csrfToken" value="{{ handler.csrfToken }}">
<button type="submit" class="link text-maroon lighter">
<span class="icon icon-refresh"></span>
@@ -19,7 +19,7 @@
{% endif %}
</td>
<td class="col--submit-by">
<a href="/u/{{ rdoc.uid }}">
<a href="{{ url('user_detail', uid=rdoc.uid) }}">
{{ udoc['uname'] }}
</a>
</td>