New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve admin page #4121
Improve admin page #4121
Conversation
c36dfdc
to
7fa0897
Compare
@form = Form::StatusBatch.new(form_status_batch_params) | ||
unless @form.save | ||
flash[:alert] = t('admin.statuses.failed_to_execute') | ||
end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
flash[:alert] = t('admin.statuses.failed_to_execute') unless @form.save
flash[:alert] = t('admin.statuses.failed_to_execute') | ||
end | ||
redirect_to admin_account_statuses_path(@account.id, current_params) | ||
end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
flash[:alert] = t('admin.statuses.failed_to_execute') unless @form.save
@@ -15,7 +23,7 @@ def update | |||
def destroy | |||
authorize @status, :destroy? | |||
RemovalWorker.perform_async(@status.id) | |||
redirect_to admin_report_path(@report) | |||
render json: @status |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I Improved select style |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nice work!! LGTM
batch: | ||
delete: Delete | ||
nsfw_off: NSFW OFF | ||
nsfw_on: NSFW ON |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
NSFW? Isn't it now called 'Content warning' on Mastodon?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"Content warning" is a function to hide sentences, and NSFW is a function to hide images. The implemented function is a function to change NSFW.
* Improve admin page * Fix test * Add spec * Improve select style
Report page:
Account status page:
Account page: