action bar in search result

This commit is contained in:
Your Name 2025-01-01 18:41:31 -05:00 committed by Henri Dickson
parent db50128b9d
commit 4678c31dac
3 changed files with 18 additions and 16 deletions

View file

@ -44,12 +44,10 @@
<option {% if request.GET.c == 'performance' or '/performance/' in request.path %}selected{% endif %}
value="performance">{% trans 'Performance' %}</option>
{% endif %}
{% if request.user.is_authenticated %}
<option {% if request.GET.c == 'journal' or '/users/' in request.path %}selected{% endif %}
value="journal">{% trans 'Journal' %}</option>
<option {% if request.GET.c == 'timeline' or '/timeline/' in request.path %}selected{% endif %}
value="timeline">{% trans 'Posts' %}</option>
{% endif %}
<option {% if request.GET.c == 'journal' %}selected{% endif %}
value="journal">{% trans 'Journal' %}</option>
<option {% if request.GET.c == 'timeline' %}selected{% endif %}
value="timeline">{% trans 'Posts' %}</option>
</select>
<input type="submit" value="&#xf002;" class="fa-solid" />
</form>

View file

@ -46,8 +46,15 @@
{% if mark.shelf %}
<section>
<div class="action">
{% include "action_open_post.html" with post=mark.shelfmember.latest_post %}
<span class="timestamp">{{ mark.created_time|date }}</span>
</div>
<div>
{% comment %} <a href="{{mark.owner.url }}" title="@{{ mark.owner.handle }}">{{ mark.owner.display_name }}</a> {% endcomment %}
<span>{{ mark.status_label }}</span>
{% if mark.rating_grade %}{{ mark.rating_grade|rating_star }}{% endif %}
<span>{{ mark.comment.html|safe }}</span>
</div>
<span class="tag-list">
{% for tag in mark.tags %}
{% if forloop.counter <= 5 %}
@ -57,19 +64,15 @@
{% endif %}
{% endfor %}
</span>
<div>
{% comment %} <a href="{{mark.owner.url }}" title="@{{ mark.owner.handle }}">{{ mark.owner.display_name }}</a> {% endcomment %}
<span>{{ mark.status_label }}</span>
{% if mark.rating_grade %}{{ mark.rating_grade|rating_star }}{% endif %}
<span>{{ mark.comment.html|safe }}</span>
</div>
{% if mark.comment.latest_post %}<div id="replies_{{ mark.comment.latest_post.pk }}"></div>{% endif %}
</section>
{% endif %}
{% if mark.review %}
<section>
<span class="action">
<div class="action">
{% include "action_open_post.html" with post=mark.review.latest_post %}
<span class="timestamp">{{ mark.review.created_time|date }}</span>
</span>
</div>
<div class="tldr">
{% trans "Review" %}
<span>
@ -78,6 +81,7 @@
-
{{ mark.review.plain_content }}
</div>
{% if mark.review.latest_post %}<div id="replies_{{ mark.review.latest_post.pk }}"></div>{% endif %}
</section>
{% endif %}
{% endif %}

View file

@ -2517,7 +2517,7 @@ msgstr ""
" <i class=\"fa-solid fa-puzzle-piece\"></i> &nbsp; %(site_name)s 致力于提供一个涵盖书籍、影视、音乐、游戏、播客的自由开放互联的收藏评论空间。 你可以在这里记录你的收藏和想法,以及发现新的内容和朋友。\n"
"</p>\n"
"<p>\n"
" <i class=\"fa-solid fa-globe\"></i> &nbsp; 登录%(site_name)s的最佳方式通过联邦宇宙Fediverse有时也被称为<em data-tooltip=\"除了最常见的长毛象另外也有Pleroma、GoToSocial、Takahē、Catodon等联邦宇宙实例服务\">长毛象</em>,一种分布式社交网络)实例账号,如果你还没有注册过,可先<a href=\"https://joinmastodon.org/zh/servers\" target=\"_blank\">选择实例并注册</a>。\n"
" <i class=\"fa-solid fa-globe\"></i> &nbsp; 登录%(site_name)s的最佳方式通过<em data-tooltip=\"除了最常见的长毛象另外也有Pleroma、GoToSocial、Takahē、Firefish、Catodon等联邦宇宙实例服务\">联邦宇宙Fediverse一种分布式社交网络</em>实例账号,如果你还没有注册过,可先<a href=\"https://joinmastodon.org/zh/servers\" target=\"_blank\">选择实例并注册</a>。\n"
"</p>\n"
"<p>\n"
" <i class=\"fa-solid fa-envelope\"></i> &nbsp; 如果还没准备好注册联邦宇宙也没问题,你可以在登录页面选择电子邮件注册,未来再连接到联邦宇宙。\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"