mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
ui: add recent_problem section
This commit is contained in:
1 parent
317fb11540
commit
7df24629dd
6 files changed
+75
-58
No files matched your search
@@ -641,6 +641,7 @@ Ready (☆▽☆): 马上开始 (☆▽☆)
|
||||
Ready: 即将开始
|
||||
Recent {0} Records: 最近 {0} 条记录
|
||||
Recent Activities: 最近活动
|
||||
Recent Problems: 最新题目
|
||||
Recent Solutions: 最近编写的题解
|
||||
Recent Submissions: 最近递交
|
||||
Recently Created Discussions: 最近创建的讨论
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@hydrooj/ui-default",
|
||||
"version": "4.39.4",
|
||||
"version": "4.39.5",
|
||||
"author": "undefined <i@undefined.moe>",
|
||||
"license": "AGPL-3.0",
|
||||
"main": "hydro.js",
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
{% set pdocs = payload[0] %}
|
||||
{% set psdict = payload[1] %}
|
||||
{% if pdocs.length %}
|
||||
<div class="section side nojs--hide">
|
||||
<div class="section__header">
|
||||
<h1 class="section__title">{{ _('Recent Problems') }}</h1>
|
||||
</div>
|
||||
<div class="section__body typo no-media col--problem-name">
|
||||
{%- for pdoc in pdocs -%}
|
||||
<p>
|
||||
{{ problem.render_problem_title(pdoc, show_tags=false, show_invisible_flag=false) }}
|
||||
<span style="float: right">{{ datetimeSpan(pdoc._id)|safe }}</span>
|
||||
</p>
|
||||
{%- endfor -%}
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
Reference in new issue
Block a user