Show screenshot data in development mode
This commit is contained in:
parent
b1dbcef80b
commit
a9855a560b
1 changed files with 4 additions and 0 deletions
|
|
@ -22,8 +22,12 @@ h1 =@package.name
|
||||||
- if user_signed_in? and current_user.is_admin?
|
- if user_signed_in? and current_user.is_admin?
|
||||||
.imgcaption
|
.imgcaption
|
||||||
span.label.secondary #{screenshot.adminstatus}
|
span.label.secondary #{screenshot.adminstatus}
|
||||||
|
- if Rails.env == 'development'
|
||||||
|
tt
|
||||||
|
= screenshot.inspect
|
||||||
|
|
||||||
// Is the user an admin?
|
// Is the user an admin?
|
||||||
|
// TODO: fix dropdowns – do not enforce javascript
|
||||||
- if user_signed_in? and current_user.is_admin?
|
- if user_signed_in? and current_user.is_admin?
|
||||||
= render(partial: 'admin_dropdown', locals: {screenshot: screenshot})
|
= render(partial: 'admin_dropdown', locals: {screenshot: screenshot})
|
||||||
// or does the screenshot belong to the user (determined by session cookie)
|
// or does the screenshot belong to the user (determined by session cookie)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue