move notification bell from teaser to post options #380

This commit is contained in:
rimu 2024-12-10 08:30:16 +13:00
parent 84460e7433
commit 2e4b3ffd33
3 changed files with 2 additions and 7 deletions

View file

@ -9,7 +9,7 @@
{# do nothing - blocked by keyword filter #}
{% else -%}
<div class="h-entry post_teaser type_{{ post.type }}{{ ' reported' if post.reports > 0 and current_user.is_authenticated and post.community.is_moderator() }}{{ ' blocked' if content_blocked }}{{ ' blur' if blur_content }}"
{% if content_blocked -%} title="{{ _('Filtered: ') }}{{ content_blocked }}"{% endif -%} tabindex="0">
{% if content_blocked -%} title="{{ _('Filtered: ') }}{{ content_blocked }}"{% else %} title="Post: {{ post.title }}" aria-label="Post: {{ post.title }}"{% endif -%} tabindex="0">
<div class="row">
{% if post.type == POST_TYPE_ARTICLE %}
{% include "post/post_teaser/_article.html" -%}

View file

@ -10,7 +10,7 @@
<div class="col col-login mx-auto">
<div class="card mt-5">
<div class="card-body p-6">
<div class="card-title">{{ _('Options for "%(post_title)s"', post_title=post.title) }}</div>
<div class="card-title">{{ _('Options for "%(post_title)s"', post_title=post.title) }} {% include 'post/_post_notification_toggle.html' -%}</div>
<ul class="option_list">
{% if current_user.is_authenticated -%}
{% if post.user_id == current_user.id -%}

View file

@ -19,11 +19,6 @@
<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>
{% endif -%}
<div class="notify_toggle">
{% if current_user.is_authenticated and current_user.verified -%}
{% include 'post/_post_notification_toggle.html' -%}
{% endif -%}
</div>
<div class="post_options_link">
<a href="{{ url_for('post.post_options', post_id=post.id) }}" rel="nofollow" aria-label="{{ _('Options') }}"><span class="fe fe-options" title="Options"> </span></a>
</div>