Skip to content

Commit

Permalink
allow force upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Her Email authored and alphatownsman committed Nov 28, 2023
1 parent 433a680 commit 0411550
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 deletions.
8 changes: 4 additions & 4 deletions journal/templates/like_stats.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@
{% if request.user.is_authenticated %} hx-post="{% url 'journal:unlike' piece.uuid %}?stats=1&icon={{ icon }}&label={{ label }}" {% endif %}
hx-swap="outerHTML"
hx-target="this"
title="已{{ label|default:'赞' }}">
<i class="fa-solid {{ icon|default:'fa-thumbs-up' }}"></i>
title="已喜欢">
<i class="fa-solid fa-heart"></i>
<span>{{ piece.like_count }}</span>
</a>
{% else %}
<a hx-swap="outerHTML"
hx-target="this"
{% if request.user.is_authenticated %} hx-post="{% url 'journal:like' piece.uuid %}?stats=1&amp;icon={{ icon }}&amp;label={{ label }}" {% endif %}
title="{{ label|default:'赞' }}">
<i class="fa-regular {{ icon|default:'fa-thumbs-up' }}"></i>
title="喜欢">
<i class="fa-regular fa-heart"></i>
{% if piece.like_count %}<span>{{ piece.like_count }}</span>{% endif %}
</a>
{% endif %}
9 changes: 2 additions & 7 deletions users/templates/users/data.html
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,8 @@
仅自己
</label>
</p>
{% if import_status.douban_pending %}
<input type="submit"
value="{% trans '备份文件已上传,请等待导入完成或刷新页面查看最新进度' %}"
disabled />
{% else %}
<input type="submit" value="{% trans '导入' %}" />
{% endif %}
<input type="submit"
{% if import_status.douban_pending %} onclick="return confirm('短期重复上传可能有无法预期的效果,确定现在上传导入吗?')" value="{% trans '备份文件已上传,请等待导入完成或刷新页面查看最新进度' %}" {% else %} value="{% trans '导入' %}" {% endif %} />
</form>
<div hx-get="{% url 'users:import_status' %}"
hx-trigger="load delay:1s"
Expand Down

0 comments on commit 0411550

Please sign in to comment.