feat:添加新文件提示功能

This commit is contained in:
Kakune55 2024-04-26 20:45:15 +08:00
parent a5185a77a9
commit 6978f0d60e
2 changed files with 4 additions and 0 deletions

View File

@ -70,6 +70,9 @@
<div id="gallery">
{% for item in list %}
<div class="card">
{% if item[4] > aftertime %}
<span class="position-absolute top-0 start-100 translate-middle badge rounded-pill bg-danger">New</span>
{% endif %}
<img src="/api/img/{{ item[1] }}/1?mini=yes" class="img-thumbnail card-img-top"
onclick="linkjump('{{ item[1] }}')" />
<div class="card-body">

View File

@ -26,6 +26,7 @@ def overview(page): # 概览
lastPageList=lastPageList,
pagenow=page,
nextPageList=nextPageList,
aftertime=int(time.time())-3*86400
)