Shut off admin stuff until future versions

This commit is contained in:
Christoph Haas 2020-10-24 17:44:56 +02:00
parent 39f25e13df
commit 9cc09451f7
2 changed files with 20 additions and 9 deletions

View file

@ -57,7 +57,8 @@ class ApplicationController < ActionController::Base
# Define where the user is redirected to after a successful login.
def after_sign_in_path_for(resource)
my_welcome_path
my_profile_path
#my_welcome_path
end
# Overwriting the sign_out redirect path method

View file

@ -1,22 +1,32 @@
// Button that reveals a dropdown/modal for moderation/reporting
button-group
- if user_signed_in?
a.button.small.alert[
href=delete_screenshot_path(screenshot.id)
onclick="return confirm('Really delete the screenshot?');"
] Delete screenshot
.button-group.small.align-center
a.button.secondary.hollow =screenshot.adminstatus
a.button.small.bordered.radius.alert[
href=delete_screenshot_path(screenshot.id)
onclick="return confirm('Really delete the screenshot?');"
] #{fa_icon 'trash'} Delete
/ a.button.small.bordered.radius.secondary[
/ href='#'
/ ] #{fa_icon 'edit'} Edit caption
/ a.button.small.bordered.radius.secondary[
/ href='#'
/ ] #{fa_icon 'star'} Make primary
- if not screenshot.approved
a.button.small.success[
href=approve_screenshot_path(screenshot.id)
method='post'
] Approve screenshot
] Approve
- elsif screenshot.markedfordelete
a.button.small.success[
href=approve_screenshot_path(screenshot.id)
method='post'
] Keep screenshot
] Keep
/ Display additional information to admins