mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
bug fix
This commit is contained in:
1 parent
688ccf811b
commit
775301c001
7 files changed
+56
-75
No files matched your search
@@ -103,53 +103,36 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="section">
|
||||
<div class="section__header">
|
||||
<h2 class="section__title">{{ _('Accepted Problems') }}</h2>
|
||||
</div>
|
||||
<div class="typo section__body no-media">
|
||||
{% set _mark = Math.ceil(pdocs.length/4) %}
|
||||
{% set _one = pdocs.slice(0, _mark) %}
|
||||
{% set _two = pdocs.slice(_mark, _mark*2) %}
|
||||
{% set _three = pdocs.slice(_mark*2, _mark*3) %}
|
||||
{% set _four = pdocs.slice(_mark*3, pdocs.length - 1) %}
|
||||
<div class="row">
|
||||
<div class="medium-3 columns">
|
||||
<ul>
|
||||
{% for pdoc in _one %}
|
||||
<li>{{ problem.render_problem_title(pdoc, show_tags=false, small=true) }}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
<div class="medium-3 columns">
|
||||
<ul>
|
||||
{% for pdoc in _two %}
|
||||
<li>{{ problem.render_problem_title(pdoc, show_tags=false, small=true) }}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
<div class="medium-3 columns">
|
||||
<ul>
|
||||
{% for pdoc in _three %}
|
||||
<li>{{ problem.render_problem_title(pdoc, show_tags=false, small=true) }}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
<div class="medium-3 columns">
|
||||
<ul>
|
||||
{% for pdoc in _four %}
|
||||
<li>{{ problem.render_problem_title(pdoc, show_tags=false, small=true) }}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% if pdocs.length %}
|
||||
<div class="section">
|
||||
<div class="section__header">
|
||||
<h2 class="section__title">{{ _('Accepted Problems') }}</h2>
|
||||
</div>
|
||||
<div class="typo section__body no-media">
|
||||
{% set _mark = Math.ceil(pdocs.length/4) %}
|
||||
{% macro col(pdocs) %}
|
||||
<div class="medium-3 columns">
|
||||
<ul>
|
||||
{% for pdoc in pdocs %}
|
||||
<li>{{ problem.render_problem_title(pdoc, show_tags=false, small=true) }}</li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
{% endmacro %}
|
||||
<div class="row">
|
||||
{{ col(pdocs.slice(0, _mark)) }}
|
||||
{{ col(pdocs.slice(_mark, _mark*2)) }}
|
||||
{{ col(pdocs.slice(_mark*2, _mark*3)) }}
|
||||
{{ col(pdocs.slice(_mark*3, pdocs.length - 1)) }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
<div class="medium-3 columns">
|
||||
{% if isSelfProfile %}
|
||||
{{ home.render_sidebar() }}
|
||||
{% endif %}
|
||||
{% if isSelfProfile %}
|
||||
{{ home.render_sidebar() }}
|
||||
{% endif %}
|
||||
<div class="section side">
|
||||
<div class="section__body">
|
||||
<div class="balancer sidebar-user-stat">
|
||||
@@ -174,19 +157,21 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="section side">
|
||||
<div class="section__header">
|
||||
<h2 class="section__title">{{ _('Problem Tags') }}</h2>
|
||||
{% if tags.length %}
|
||||
<div class="section side">
|
||||
<div class="section__header">
|
||||
<h2 class="section__title">{{ _('Problem Tags') }}</h2>
|
||||
</div>
|
||||
<div class="typo section__body no-media">
|
||||
<dl class="exlarge horizontal">
|
||||
{% for tag in tags %}
|
||||
<dt>{{ tag[0] }}</dt>
|
||||
<dd>{{ tag[1] }}</dd>
|
||||
{% endfor %}
|
||||
</dl>
|
||||
</div>
|
||||
</div>
|
||||
<div class="typo section__body no-media">
|
||||
<dl class="exlarge horizontal">
|
||||
{% for tag in tags %}
|
||||
<dt>{{ tag[0] }}</dt>
|
||||
<dd>{{ tag[1] }}</dd>
|
||||
{% endfor %}
|
||||
</dl>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
Reference in new issue
Block a user