mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 09:46:28 +08:00
使用url()来构建url
This commit is contained in:
1 parent
0efac48bde
commit
86f67a0ec3
61 files changed
+262
-275
No files matched your search
@@ -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>
|
||||
|
||||
Reference in new issue
Block a user