mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-23 19:36:56 -08:00
move notification bell from teaser to post options #380
This commit is contained in:
parent
84460e7433
commit
2e4b3ffd33
3 changed files with 2 additions and 7 deletions
|
@ -9,7 +9,7 @@
|
||||||
{# do nothing - blocked by keyword filter #}
|
{# do nothing - blocked by keyword filter #}
|
||||||
{% else -%}
|
{% 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 }}"
|
<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">
|
<div class="row">
|
||||||
{% if post.type == POST_TYPE_ARTICLE %}
|
{% if post.type == POST_TYPE_ARTICLE %}
|
||||||
{% include "post/post_teaser/_article.html" -%}
|
{% include "post/post_teaser/_article.html" -%}
|
||||||
|
|
|
@ -10,7 +10,7 @@
|
||||||
<div class="col col-login mx-auto">
|
<div class="col col-login mx-auto">
|
||||||
<div class="card mt-5">
|
<div class="card mt-5">
|
||||||
<div class="card-body p-6">
|
<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">
|
<ul class="option_list">
|
||||||
{% if current_user.is_authenticated -%}
|
{% if current_user.is_authenticated -%}
|
||||||
{% if post.user_id == current_user.id -%}
|
{% if post.user_id == current_user.id -%}
|
||||||
|
|
|
@ -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>
|
<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>
|
</div>
|
||||||
{% endif -%}
|
{% 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">
|
<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>
|
<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>
|
</div>
|
||||||
|
|
Loading…
Add table
Reference in a new issue