|
21 | 21 | {% trans 'boosted' %}
|
22 | 22 | </div>
|
23 | 23 | {% endif %}
|
24 |
| - {% if post.in_reply_to_post_ %} |
25 |
| - <div class="replied"> |
26 |
| - {% trans 'replying to' %} |
27 |
| - {% comment %}do not show replying to detail in case viewer has no access to it{% endcomment %} |
28 |
| - <a class="nickname" |
29 |
| - href="{% url 'journal:post_view' post.in_reply_to_post_.author.handle post.in_reply_to_post_.pk %}"> |
30 |
| - @{{ post.in_reply_to_post_.author.username }}@{{ post.in_reply_to_post_.author.domain_id }} |
31 |
| - </a> |
32 |
| - </div> |
33 |
| - {% endif %} |
34 | 24 | <div style="display:flex;">
|
35 | 25 | <div>
|
36 | 26 | <div class="avatar" style="margin:0.6em 0.6em 0.6em 0;">
|
|
43 | 33 | <div style="flex-grow:1;">
|
44 | 34 | <span class="action">
|
45 | 35 | {% include "action_post_timestamp.html" %}
|
46 |
| - {% if item and item.class_name != 'tvepisode' %} |
47 |
| - <span> |
48 |
| - {% if item.class_name == 'podcastepisode' %} |
49 |
| - <a title="{% trans "play" %}" |
50 |
| - class="episode" |
51 |
| - data-uuid="{{ item.uuid }}" |
52 |
| - data-media="{{ item.media_url }}" |
53 |
| - data-cover="{{ item.cover_url|default:item.parent_item.cover.url }}" |
54 |
| - data-title="{{ item.display_title }}" |
55 |
| - data-album="{{ item.parent_item.display_title }}" |
56 |
| - data-hosts="{{ item.parent_item.host|join:' / ' }}" |
57 |
| - {% if request.user.is_authenticated %} data-comment-href="{% url 'journal:comment' item.uuid %}" {% endif %} |
58 |
| - data-position="{{ piece.metadata.position | default:0 }}"><i class="fa-solid fa-circle-play"></i></a> |
59 |
| - {% else %} |
60 |
| - <a title="{% trans "mark" %}" |
61 |
| - hx-get="{% url 'journal:mark' item.uuid %}?shelf_type=wishlist" |
62 |
| - hx-target="body" |
63 |
| - hx-swap="beforeend"> |
64 |
| - <i class="fa-regular fa-bookmark"></i> |
65 |
| - </a> |
66 |
| - {% endif %} |
67 |
| - </span> |
68 |
| - {% endif %} |
69 |
| - {% if show_all_actions and request.user.is_authenticated and post.author_id == request.user.identity.pk %} |
70 |
| - {% include "action_pin_post.html" %} |
71 |
| - {% include "action_delete_post.html" %} |
72 |
| - {% endif %} |
73 |
| - {% include "action_reply_post.html" %} |
74 |
| - {% include "action_like_post.html" %} |
75 |
| - {% include "action_boost_post.html" %} |
76 |
| - {% if translate_enabled and request.user.is_authenticated %} |
77 |
| - {% include "action_translate_post.html" %} |
78 |
| - {% endif %} |
79 |
| - {% if show_all_actions and request.user.is_authenticated %} |
80 |
| - {% include "action_flag_post.html" %} |
| 36 | + {% if not hide_actions %} |
| 37 | + {% if item and item.class_name != 'tvepisode' %} |
| 38 | + <span> |
| 39 | + {% if item.class_name == 'podcastepisode' %} |
| 40 | + <a title="{% trans "play" %}" |
| 41 | + class="episode" |
| 42 | + data-uuid="{{ item.uuid }}" |
| 43 | + data-media="{{ item.media_url }}" |
| 44 | + data-cover="{{ item.cover_url|default:item.parent_item.cover.url }}" |
| 45 | + data-title="{{ item.display_title }}" |
| 46 | + data-album="{{ item.parent_item.display_title }}" |
| 47 | + data-hosts="{{ item.parent_item.host|join:' / ' }}" |
| 48 | + {% if request.user.is_authenticated %} data-comment-href="{% url 'journal:comment' item.uuid %}" {% endif %} |
| 49 | + data-position="{{ piece.metadata.position | default:0 }}"><i class="fa-solid fa-circle-play"></i></a> |
| 50 | + {% else %} |
| 51 | + <a title="{% trans "mark" %}" |
| 52 | + hx-get="{% url 'journal:mark' item.uuid %}?shelf_type=wishlist" |
| 53 | + hx-target="body" |
| 54 | + hx-swap="beforeend"> |
| 55 | + <i class="fa-regular fa-bookmark"></i> |
| 56 | + </a> |
| 57 | + {% endif %} |
| 58 | + </span> |
| 59 | + {% endif %} |
| 60 | + {% if show_all_actions and request.user.is_authenticated and post.author_id == request.user.identity.pk %} |
| 61 | + {% include "action_pin_post.html" %} |
| 62 | + {% include "action_delete_post.html" %} |
| 63 | + {% endif %} |
| 64 | + {% include "action_reply_post.html" %} |
| 65 | + {% include "action_like_post.html" %} |
| 66 | + {% include "action_boost_post.html" %} |
| 67 | + {% if translate_enabled and request.user.is_authenticated %} |
| 68 | + {% include "action_translate_post.html" %} |
| 69 | + {% endif %} |
| 70 | + {% if show_all_actions and request.user.is_authenticated %} |
| 71 | + {% include "action_flag_post.html" %} |
| 72 | + {% endif %} |
| 73 | + {% include "action_open_post.html" %} |
81 | 74 | {% endif %}
|
82 |
| - {% include "action_open_post.html" %} |
83 | 75 | </span>
|
84 |
| - <span> |
| 76 | + <span class="post_author"> |
85 | 77 | <a href="{{ post.author.url }}"
|
86 | 78 | class="nickname"
|
87 | 79 | title="@{{ post.author.handle }}">{{ post.author.name|default:post.author.username }}</a>
|
88 | 80 | {% if piece and piece.classname == 'note' %}
|
89 | 81 | {% trans "wrote a note" %}
|
90 | 82 | {% endif %}
|
91 | 83 | </span>
|
| 84 | + {% if post.in_reply_to_post_ %} |
| 85 | + <span class="replied"> |
| 86 | + {% trans 'replying to' %} |
| 87 | + {% comment %}do not show replying to detail in case viewer has no access to it{% endcomment %} |
| 88 | + <a class="nickname" |
| 89 | + title="@{{ post.in_reply_to_post_.author.handle }}" |
| 90 | + href="{% url 'journal:post_view' post.in_reply_to_post_.author.handle post.in_reply_to_post_.pk %}"> |
| 91 | + {{ post.in_reply_to_post_.author.name | default:post.in_reply_to_post_.author.handle }} |
| 92 | + </a> |
| 93 | + </span> |
| 94 | + {% endif %} |
92 | 95 | {% if item and piece.classname != 'note' %}
|
93 | 96 | <article>{% include "_item_card.html" with item=item allow_embed=1 %}</article>
|
94 | 97 | {% endif %}
|
|
0 commit comments