Skip to content

Commit

Permalink
action bar in search result
Browse files Browse the repository at this point in the history
  • Loading branch information
Your Name authored and alphatownsman committed Jan 1, 2025
1 parent db50128 commit 4678c31
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 16 deletions.
10 changes: 4 additions & 6 deletions common/templates/_header.html
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down
20 changes: 12 additions & 8 deletions journal/templates/_list_item.html
Original file line number Diff line number Diff line change
Expand Up @@ -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 %}
Expand All @@ -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>
Expand All @@ -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 %}
Expand Down
4 changes: 2 additions & 2 deletions locale/zh_Hans/LC_MESSAGES/django.po
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down

0 comments on commit 4678c31

Please sign in to comment.