From 4678c31dac5116314d9bc8a09d325e139cb59e6d Mon Sep 17 00:00:00 2001 From: Your Name Date: Wed, 1 Jan 2025 18:41:31 -0500 Subject: [PATCH] action bar in search result --- common/templates/_header.html | 10 ++++------ journal/templates/_list_item.html | 20 ++++++++++++-------- locale/zh_Hans/LC_MESSAGES/django.po | 4 ++-- 3 files changed, 18 insertions(+), 16 deletions(-) diff --git a/common/templates/_header.html b/common/templates/_header.html index 4c802381..7793149a 100644 --- a/common/templates/_header.html +++ b/common/templates/_header.html @@ -44,12 +44,10 @@ {% endif %} - {% if request.user.is_authenticated %} - - - {% endif %} + + diff --git a/journal/templates/_list_item.html b/journal/templates/_list_item.html index 9a087264..6bf8b373 100644 --- a/journal/templates/_list_item.html +++ b/journal/templates/_list_item.html @@ -46,8 +46,15 @@ {% if mark.shelf %}
+ {% include "action_open_post.html" with post=mark.shelfmember.latest_post %} {{ mark.created_time|date }}
+
+ {% comment %} {{ mark.owner.display_name }} {% endcomment %} + {{ mark.status_label }} + {% if mark.rating_grade %}{{ mark.rating_grade|rating_star }}{% endif %} + {{ mark.comment.html|safe }} +
{% for tag in mark.tags %} {% if forloop.counter <= 5 %} @@ -57,19 +64,15 @@ {% endif %} {% endfor %} -
- {% comment %} {{ mark.owner.display_name }} {% endcomment %} - {{ mark.status_label }} - {% if mark.rating_grade %}{{ mark.rating_grade|rating_star }}{% endif %} - {{ mark.comment.html|safe }} -
+ {% if mark.comment.latest_post %}
{% endif %}
{% endif %} {% if mark.review %}
- +
+ {% include "action_open_post.html" with post=mark.review.latest_post %} {{ mark.review.created_time|date }} - +
{% trans "Review" %} @@ -78,6 +81,7 @@ - {{ mark.review.plain_content }}
+ {% if mark.review.latest_post %}
{% endif %}
{% endif %} {% endif %} diff --git a/locale/zh_Hans/LC_MESSAGES/django.po b/locale/zh_Hans/LC_MESSAGES/django.po index d6bf131d..bcc89cf8 100644 --- a/locale/zh_Hans/LC_MESSAGES/django.po +++ b/locale/zh_Hans/LC_MESSAGES/django.po @@ -2517,7 +2517,7 @@ msgstr "" "   %(site_name)s 致力于提供一个涵盖书籍、影视、音乐、游戏、播客的自由开放互联的收藏评论空间。 你可以在这里记录你的收藏和想法,以及发现新的内容和朋友。\n" "

\n" "

\n" -"   登录%(site_name)s的最佳方式通过联邦宇宙(Fediverse,有时也被称为长毛象,一种分布式社交网络)实例账号,如果你还没有注册过,可先选择实例并注册。\n" +"   登录%(site_name)s的最佳方式通过联邦宇宙(Fediverse,一种分布式社交网络)实例账号,如果你还没有注册过,可先选择实例并注册。\n" "

\n" "

\n" "   如果还没准备好注册联邦宇宙也没问题,你可以在登录页面选择电子邮件注册,未来再连接到联邦宇宙。\n" @@ -4256,7 +4256,7 @@ msgstr "推荐输入电子邮件地址作为备用登录方式。" #: users/templates/users/account.html:73 users/templates/users/login.html:69 msgid "Fediverse (Mastodon)" -msgstr "联邦宇宙(有时也被称为长毛象)" +msgstr "联邦宇宙(Mastodon API)" #: users/templates/users/account.html:79 msgid "Verified Identity"