clean up action bar
This commit is contained in:
parent
a3e5978d02
commit
7b3885fbd9
7 changed files with 54 additions and 61 deletions
|
@ -12,7 +12,7 @@
|
|||
}
|
||||
}
|
||||
|
||||
section {
|
||||
> section {
|
||||
margin-bottom: var(--pico-spacing);
|
||||
display: grid;
|
||||
grid-template-columns: auto 1fr;
|
||||
|
|
|
@ -12,16 +12,6 @@
|
|||
{% wish_item_action activity.action_object.item.parent_item as action %}
|
||||
{% like_piece_action activity.action_object as like_action %}
|
||||
<span class="action">
|
||||
<span>
|
||||
{% liked_piece activity.action_object as liked %}
|
||||
{% include 'like_stats.html' with liked=liked piece=activity.action_object %}
|
||||
</span>
|
||||
<span>
|
||||
<a title="评论节目"
|
||||
hx-get="{% url 'journal:comment' activity.action_object.item.uuid %}"
|
||||
hx-target="body"
|
||||
hx-swap="beforeend"><i class="fa-regular fa-comment"></i></a>
|
||||
</span>
|
||||
{% if activity.action_object.item.class_name == 'podcastepisode' %}
|
||||
<span>
|
||||
<a title="播放节目"
|
||||
|
@ -35,26 +25,31 @@
|
|||
data-position="{{ activity.action_object.metadata.position | default:0 }}"><i class="fa-solid fa-circle-play"></i></a>
|
||||
</span>
|
||||
{% endif %}
|
||||
<!--
|
||||
<span>
|
||||
{% if not action.taken %}
|
||||
<a title="添加标记"
|
||||
hx-get="{% url 'journal:mark' activity.action_object.item.parent_item.uuid %}?shelf_type=wishlist"
|
||||
hx-target="body"
|
||||
hx-swap="beforeend">
|
||||
<a title="添加标记" hx-get="{% url 'journal:mark' activity.action_object.item.parent_item.uuid %}?shelf_type=wishlist" hx-target="body" hx-swap="beforeend">
|
||||
<i class="fa-regular fa-bookmark"></i>
|
||||
</a>
|
||||
{% else %}
|
||||
<a title="修改标记"
|
||||
hx-get="{% url 'journal:mark' activity.action_object.item.parent_item.uuid %}"
|
||||
hx-target="body"
|
||||
hx-swap="beforeend">
|
||||
<a title="修改标记" hx-get="{% url 'journal:mark' activity.action_object.item.parent_item.uuid %}" hx-target="body" hx-swap="beforeend">
|
||||
<i class="fa-solid fa-bookmark"></i>
|
||||
</a>
|
||||
{% endif %}
|
||||
</span>
|
||||
-->
|
||||
<span>
|
||||
<a {% if activity.action_object.shared_link %} href="{{ activity.action_object.shared_link }}" target="_blank" rel="noopener" title="打开联邦宇宙分享链接" {% else %} class="disabled" {% endif %}><i class="fa-solid {% if activity.action_object.visibility > 0 %} fa-lock {% else %} fa-globe {% endif %} "></i></a>
|
||||
<a title="评论节目"
|
||||
hx-get="{% url 'journal:comment' activity.action_object.item.uuid %}"
|
||||
hx-target="body"
|
||||
hx-swap="beforeend"><i class="fa-regular fa-comment"></i></a>
|
||||
</span>
|
||||
{% if activity.action_object.latest_post %}
|
||||
{% include "action_reply_piece.html" with post=activity.action_object.latest_post piece=activity.action_object %}
|
||||
{% include "action_like_post.html" with post=activity.action_object.latest_post %}
|
||||
{% include "action_boost_post.html" with post=activity.action_object.latest_post %}
|
||||
{% include "action_open_post.html" with post=activity.action_object.latest_post %}
|
||||
{% endif %}
|
||||
</span>
|
||||
<div class="spacing">
|
||||
{{ activity.action_object.mark.action_label }}
|
||||
|
@ -68,9 +63,8 @@
|
|||
</div>
|
||||
<article>
|
||||
{% include "_item_card.html" with item=activity.action_object.item.parent_item allow_embed=1 %}
|
||||
{% if activity.action_object.mark.comment_text %}
|
||||
<footer>
|
||||
<p>{{ activity.action_object.mark.comment_html|safe }}</p>
|
||||
</footer>
|
||||
{% endif %}
|
||||
<footer>
|
||||
{% if activity.action_object.mark.comment_text %}<p>{{ activity.action_object.mark.comment_html|safe }}</p>{% endif %}
|
||||
<p id="replies_{{ activity.action_object.latest_post.pk }}"></p>
|
||||
</footer>
|
||||
</article>
|
||||
|
|
|
@ -9,10 +9,12 @@
|
|||
{% load prettydate %}
|
||||
{% load user_actions %}
|
||||
<span class="action">
|
||||
<span>
|
||||
{% liked_piece activity.action_object as liked %}
|
||||
{% include 'like_stats.html' with liked=liked piece=activity.action_object label='关注' icon='fa-heart' %}
|
||||
</span>
|
||||
{% if activity.action_object.latest_post %}
|
||||
{% include "action_reply_piece.html" with post=activity.action_object.latest_post piece=activity.action_object %}
|
||||
{% include "action_like_post.html" with post=activity.action_object.latest_post %}
|
||||
{% include "action_boost_post.html" with post=activity.action_object.latest_post %}
|
||||
{% include "action_open_post.html" with post=activity.action_object.latest_post %}
|
||||
{% endif %}
|
||||
</span>
|
||||
<div class="spacing">
|
||||
创建了收藏单
|
||||
|
|
|
@ -10,10 +10,12 @@
|
|||
{% load user_actions %}
|
||||
{% with activity.action_object.target as collection %}
|
||||
<span class="action">
|
||||
<span>
|
||||
{% liked_piece collection as liked %}
|
||||
{% include 'like_stats.html' with liked=liked piece=collection label='关注' icon='fa-heart' %}
|
||||
</span>
|
||||
{% if activity.action_object.latest_post %}
|
||||
{% include "action_reply_piece.html" with post=activity.action_object.latest_post piece=activity.action_object %}
|
||||
{% include "action_like_post.html" with post=activity.action_object.latest_post %}
|
||||
{% include "action_boost_post.html" with post=activity.action_object.latest_post %}
|
||||
{% include "action_open_post.html" with post=activity.action_object.latest_post %}
|
||||
{% endif %}
|
||||
</span>
|
||||
<div class="spacing">
|
||||
设置了目标
|
||||
|
|
|
@ -10,10 +10,12 @@
|
|||
{% load user_actions %}
|
||||
{% with activity.action_object.target as collection %}
|
||||
<span class="action">
|
||||
<span>
|
||||
{% liked_piece collection as liked %}
|
||||
{% include 'like_stats.html' with liked=liked piece=collection label='关注' icon='fa-heart' %}
|
||||
</span>
|
||||
{% if activity.action_object.latest_post %}
|
||||
{% include "action_reply_piece.html" with post=activity.action_object.latest_post piece=activity.action_object %}
|
||||
{% include "action_like_post.html" with post=activity.action_object.latest_post %}
|
||||
{% include "action_boost_post.html" with post=activity.action_object.latest_post %}
|
||||
{% include "action_open_post.html" with post=activity.action_object.latest_post %}
|
||||
{% endif %}
|
||||
</span>
|
||||
<div class="spacing">
|
||||
关注了
|
||||
|
|
|
@ -11,15 +11,6 @@
|
|||
{% load duration %}
|
||||
{% wish_item_action activity.action_object.item as action %}
|
||||
<span class="action">
|
||||
<span>
|
||||
{% liked_piece activity.action_object as liked %}
|
||||
{% include 'like_stats.html' with liked=liked piece=activity.action_object %}
|
||||
</span>
|
||||
{% comment %}
|
||||
<span>
|
||||
<a><i class="fa-solid fa-circle-play"></i></a>
|
||||
</span>
|
||||
{% endcomment %}
|
||||
<span>
|
||||
{% if not action.taken %}
|
||||
<a title="添加标记"
|
||||
|
@ -37,9 +28,12 @@
|
|||
</a>
|
||||
{% endif %}
|
||||
</span>
|
||||
<span>
|
||||
<a {% if activity.action_object.shared_link %} href="{{ activity.action_object.shared_link }}" target="_blank" rel="noopener" title="打开联邦宇宙分享链接" {% else %} class="disabled" {% endif %}><i class="fa-solid {% if activity.action_object.visibility > 0 %} fa-lock {% else %} fa-globe {% endif %} "></i></a>
|
||||
</span>
|
||||
{% if activity.action_object.latest_post %}
|
||||
{% include "action_reply_piece.html" with post=activity.action_object.latest_post piece=activity.action_object %}
|
||||
{% include "action_like_post.html" with post=activity.action_object.latest_post %}
|
||||
{% include "action_boost_post.html" with post=activity.action_object.latest_post %}
|
||||
{% include "action_open_post.html" with post=activity.action_object.latest_post %}
|
||||
{% endif %}
|
||||
</span>
|
||||
<div class="spacing">
|
||||
{{ activity.action_object.mark.action_label }}
|
||||
|
@ -50,9 +44,8 @@
|
|||
</div>
|
||||
<article>
|
||||
{% include "_item_card.html" with item=activity.action_object.item allow_embed=1 %}
|
||||
{% if activity.action_object.mark.comment_text %}
|
||||
<footer>
|
||||
<p>{{ activity.action_object.mark.comment_html|safe }}</p>
|
||||
</footer>
|
||||
{% endif %}
|
||||
<footer>
|
||||
{% if activity.action_object.mark.comment_text %}<p>{{ activity.action_object.mark.comment_html|safe }}</p>{% endif %}
|
||||
<p id="replies_{{ activity.action_object.latest_post.pk }}"></p>
|
||||
</footer>
|
||||
</article>
|
||||
|
|
|
@ -11,10 +11,6 @@
|
|||
{% load duration %}
|
||||
{% wish_item_action activity.action_object.item as action %}
|
||||
<span class="action">
|
||||
<span>
|
||||
{% liked_piece activity.action_object as liked %}
|
||||
{% include 'like_stats.html' with liked=liked piece=activity.action_object %}
|
||||
</span>
|
||||
<span>
|
||||
{% if not action.taken %}
|
||||
<a title="添加标记"
|
||||
|
@ -32,9 +28,12 @@
|
|||
</a>
|
||||
{% endif %}
|
||||
</span>
|
||||
<span>
|
||||
<a {% if activity.action_object.shared_link %} href="{{ activity.action_object.shared_link }}" target="_blank" rel="noopener" title="打开联邦宇宙分享链接" {% else %} class="disabled" {% endif %}><i class="fa-solid {% if activity.action_object.visibility > 0 %} fa-lock {% else %} fa-globe {% endif %} "></i></a>
|
||||
</span>
|
||||
{% if activity.action_object.latest_post %}
|
||||
{% include "action_reply_piece.html" with post=activity.action_object.latest_post piece=activity.action_object %}
|
||||
{% include "action_like_post.html" with post=activity.action_object.latest_post %}
|
||||
{% include "action_boost_post.html" with post=activity.action_object.latest_post %}
|
||||
{% include "action_open_post.html" with post=activity.action_object.latest_post %}
|
||||
{% endif %}
|
||||
</span>
|
||||
<div class="spacing">
|
||||
写了评论
|
||||
|
@ -47,5 +46,6 @@
|
|||
{% include "_item_card.html" with item=activity.action_object.item allow_embed=1 %}
|
||||
<footer>
|
||||
<p>{{ activity.action_object.plain_content|truncate:200 }}</p>
|
||||
<p id="replies_{{ activity.action_object.latest_post.pk }}"></p>
|
||||
</footer>
|
||||
</article>
|
||||
|
|
Loading…
Add table
Reference in a new issue