mirror of
https://github.com/DMOJ/online-judge.git
synced 2024-11-25 16:32:37 +08:00
Somtimes producing proper HTML is good; #635
This commit is contained in:
parent
53cccf5c99
commit
6c49623bac
@ -13,14 +13,13 @@
|
||||
{% if not page %}
|
||||
<li class="disabled-page"><span>...</span></li>
|
||||
{% else %}
|
||||
<li{% if page == page_obj.number %} class="active-page"{% endif %}>
|
||||
<a href="
|
||||
<li{% if page == page_obj.number %} class="active-page"{% endif %}><a href="
|
||||
{%- if page == 1 and first_page_href != None -%}
|
||||
{{ first_page_href }}
|
||||
{%- else -%}
|
||||
{{ page_prefix or '' }}{{ page }}{{ page_suffix or '' }}
|
||||
{%- endif -%}
|
||||
">{{ page }}</a>
|
||||
">{{ page }}</a></li>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user