Shut off admin stuff until future versions
This commit is contained in:
parent
39f25e13df
commit
9cc09451f7
2 changed files with 20 additions and 9 deletions
|
|
@ -57,7 +57,8 @@ class ApplicationController < ActionController::Base
|
||||||
|
|
||||||
# Define where the user is redirected to after a successful login.
|
# Define where the user is redirected to after a successful login.
|
||||||
def after_sign_in_path_for(resource)
|
def after_sign_in_path_for(resource)
|
||||||
my_welcome_path
|
my_profile_path
|
||||||
|
#my_welcome_path
|
||||||
end
|
end
|
||||||
|
|
||||||
# Overwriting the sign_out redirect path method
|
# Overwriting the sign_out redirect path method
|
||||||
|
|
|
||||||
|
|
@ -1,22 +1,32 @@
|
||||||
// Button that reveals a dropdown/modal for moderation/reporting
|
// Button that reveals a dropdown/modal for moderation/reporting
|
||||||
button-group
|
.button-group.small.align-center
|
||||||
- if user_signed_in?
|
|
||||||
a.button.small.alert[
|
|
||||||
href=delete_screenshot_path(screenshot.id)
|
|
||||||
onclick="return confirm('Really delete the screenshot?');"
|
|
||||||
] Delete screenshot
|
|
||||||
|
|
||||||
|
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
|
- if not screenshot.approved
|
||||||
a.button.small.success[
|
a.button.small.success[
|
||||||
href=approve_screenshot_path(screenshot.id)
|
href=approve_screenshot_path(screenshot.id)
|
||||||
method='post'
|
method='post'
|
||||||
] Approve screenshot
|
] Approve
|
||||||
|
|
||||||
- elsif screenshot.markedfordelete
|
- elsif screenshot.markedfordelete
|
||||||
a.button.small.success[
|
a.button.small.success[
|
||||||
href=approve_screenshot_path(screenshot.id)
|
href=approve_screenshot_path(screenshot.id)
|
||||||
method='post'
|
method='post'
|
||||||
] Keep screenshot
|
] Keep
|
||||||
|
|
||||||
|
|
||||||
/ Display additional information to admins
|
/ Display additional information to admins
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue