mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-19 17:38:19 +08:00
core&ui: contest navigation improvements
This commit is contained in:
5 files changed
+12
-7
No files matched your search
@@ -64,6 +64,9 @@ for key, value in $contest-color
|
||||
padding-bottom: 0.5rem;
|
||||
width: rem(180px);
|
||||
|
||||
+mobile()
|
||||
display: none;
|
||||
|
||||
> a
|
||||
text-decoration: none;
|
||||
background-color: transparent;
|
||||
|
||||
@@ -63,15 +63,16 @@
|
||||
</button>
|
||||
</form>
|
||||
{% endif %}
|
||||
{%- if not tdoc or tdoc.pids|length > 1 -%}
|
||||
{%- if tdoc -%}
|
||||
{{ utils.getAlphabeticId(tdoc.pids.indexOf(pdoc.docId)) }}
|
||||
{%- elif pdoc.pid and pdoc.pid.includes('-') -%}
|
||||
{{ pdoc.pid.split('-').join('#') }}
|
||||
{%- else -%}
|
||||
#{{ pdoc.pid|default(pdoc.docId) }}
|
||||
{%- endif -%}. {{ pdoc.title }}
|
||||
{%- endif -%}. {% endif %}{{ pdoc.title }}
|
||||
</h1>
|
||||
{% if tdoc and tdoc.pids|length <= 26 %}
|
||||
{% if tdoc and tdoc.pids|length <= 26 and tdoc.pids|length > 1 %}
|
||||
<div class="section__tools contest-problems">
|
||||
{% for pid in tdoc.pids -%}
|
||||
{% set status = tsdoc.detail[pid].status %}
|
||||
|
||||
Reference in new issue
Block a user