mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
core&ui: support pasting image in editor
This commit is contained in:
1 parent
6a289f788d
commit
8223b45d23
13 files changed
+131
-39
No files matched your search
@@ -99,35 +99,34 @@
|
||||
{% endif %}
|
||||
</div>
|
||||
</li>
|
||||
{% if pdocs.length %}
|
||||
<li class="section__tab-item">
|
||||
<h1 class="section__tab-title">{{ _('Accepted Problems') }}</h1>
|
||||
<div class="section__tab-main">
|
||||
<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>
|
||||
</li>
|
||||
{% endif %}
|
||||
{% for page in findSubModule('user_detail/') %}{% include page %}{% endfor %}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% 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>
|
||||
{% endif %}
|
||||
</div>
|
||||
<div class="medium-3 columns">
|
||||
{% if isSelfProfile %}
|
||||
|
||||
Reference in new issue
Block a user