mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-23 11:26:56 -08:00
nsfw checkmarks not checked when editing fixes #54
This commit is contained in:
parent
d020bae1de
commit
e57e916221
4 changed files with 6 additions and 1 deletions
|
@ -671,6 +671,8 @@ def post_edit(post_id: int):
|
|||
form.image_body.data = post.body
|
||||
form.image_alt_text.data = post.image.alt_text
|
||||
form.notify_author.data = post.notify_author
|
||||
form.nsfw.data = post.nsfw
|
||||
form.nsfl.data = post.nsfl
|
||||
return render_template('post/post_edit.html', title=_('Edit post'), form=form, post=post,
|
||||
markdown_editor=True,
|
||||
moderating_communities=moderating_communities(current_user.get_id()),
|
||||
|
|
|
@ -1203,6 +1203,7 @@ fieldset legend {
|
|||
|
||||
.post_title .warning_badge {
|
||||
line-height: 32px;
|
||||
margin-left: 15px;
|
||||
}
|
||||
|
||||
.conversation {
|
||||
|
|
|
@ -892,6 +892,7 @@ fieldset {
|
|||
.post_title {
|
||||
.warning_badge {
|
||||
line-height: 32px;
|
||||
margin-left: 15px;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -41,11 +41,12 @@
|
|||
{% endif %}
|
||||
{% if current_user.is_authenticated %}
|
||||
<div class="profile_action_buttons">
|
||||
{% if not current_user.is_new() and current_user.reputation > 10 %}
|
||||
{% if not current_user.created_recently() and current_user.reputation > 10 %}
|
||||
<a class="btn btn-primary" href="{{ url_for('chat.new_message', to=user.id) }}" rel="nofollow" aria-label="{{ _('Send message') }}">{{ _('Send message') }}</a>
|
||||
{% if user.matrix_user_id %}
|
||||
<a class="btn btn-primary" href="https://matrix.to/#/{{ user.matrix_user_id }}" rel="nofollow" aria-label="{{ _('Send message with matrix chat') }}">{{ _('Send message using Matrix') }}</a>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% if current_user.id != user.id %}
|
||||
{% if current_user.has_blocked_user(user.id) %}
|
||||
<a class="btn btn-primary" href="{{ url_for('user.unblock_profile', actor=user.link()) }}" rel="nofollow">{{ _('Unblock user') }}</a>
|
||||
|
|
Loading…
Reference in a new issue