2024-09-06 15:43:22 +12:00
< div class = "post_utilities_bar" >
2024-12-09 14:05:09 +01:00
< div class = "post_replies_link" >
< a href = "{{ url_for('activitypub.post_ap', post_id=post.id, sort='new' if sort == 'active' else None, _anchor='post_replies') }}" aria-label = "{{ _('View comments') }}" > < span class = "fe fe-reply" > < / span > < span aria-label = "{{ _('Number of comments:') }}" > {{ post.reply_count }}< / span > < / a >
< / div >
2024-09-06 15:43:22 +12:00
< div class = "voting_buttons_new" aria-live = "assertive" >
{% include "post/_post_voting_buttons.html" -%}
< / div >
2024-09-06 22:50:20 +12:00
{% if post.type == POST_TYPE_IMAGE and low_bandwidth -%}
2024-12-09 14:05:09 +01:00
< div class = "preview_image" >
{% if post.image_id -%}
< a href = "{{ post.image.view_url() }}" rel = "nofollow ugc" aria-label = "{{ _('View image') }}" aria-hidden = "true" > < span class = "fe fe-magnify" > < / span > < / a >
{% else -%}
< a href = "{{ post.url }}" rel = "nofollow ugc" target = "_blank" aria-label = "{{ _('View image') }}" aria-hidden = "true" > < span class = "fe fe-magnify" > < / span > < / a >
{% endif -%}
< / div >
2024-09-06 15:43:22 +12:00
{% endif -%}
2024-10-05 18:58:07 +13:00
{% if current_user.is_authenticated and post.type == POST_TYPE_LINK and post.author.bot and (post.cross_posts is none or len(post.cross_posts) == 0) -%}
2024-12-09 14:05:09 +01:00
< div class = "post_cross_post_link" >
< a rel = "nofollow" aria-label = "{{ _('Cross-post') }}" href = "{{ url_for('post.post_cross_post', post_id=post.id) }}" > < span class = "fe fe-cross-post" > < / span > < / a >
< / div >
2024-10-05 18:58:07 +13:00
{% endif -%}
2024-12-09 14:05:09 +01:00
< div class = "post_options_link" >
2024-12-21 22:04:13 +07:00
< div class = "dropdown" >
2024-12-22 15:11:42 +13:00
< a href = "{{ url_for('post.post_options', post_id=post.id) if low_bandwidth else '#' }}"
2024-12-21 22:04:13 +07:00
data-bs-toggle="dropdown"
2024-12-22 15:11:42 +13:00
rel="nofollow noindex">< span class = "fe fe-options" title = "Options" > < / span > < / a >
2024-12-21 22:04:13 +07:00
< ul class = "dropdown-menu" style = "width: 320px" >
< div
hx-get="{{ url_for('post.post_options', post_id=post.id) }}"
2024-12-22 16:01:58 +13:00
hx-trigger="intersect once"
2024-12-21 22:04:13 +07:00
hx-target="this"
hx-swap="outerHTML"
>< / div >
< / ul >
< / div >
2024-09-06 15:43:22 +12:00
< / div >
2024-12-21 22:04:13 +07:00
< / div >