Show screenshot data in development mode

This commit is contained in:
Christoph Haas 2018-08-09 18:24:39 +02:00
parent b1dbcef80b
commit a9855a560b

View file

@ -22,8 +22,12 @@ h1 =@package.name
- if user_signed_in? and current_user.is_admin?
.imgcaption
span.label.secondary #{screenshot.adminstatus}
- if Rails.env == 'development'
tt
= screenshot.inspect
// Is the user an admin?
// TODO: fix dropdowns do not enforce javascript
- if user_signed_in? and current_user.is_admin?
= render(partial: 'admin_dropdown', locals: {screenshot: screenshot})
// or does the screenshot belong to the user (determined by session cookie)