This commit is contained in:
Christoph Haas 2017-08-14 08:09:23 +02:00
parent 098afc1924
commit 193d44f89a
27 changed files with 331 additions and 707 deletions

View file

@ -39,7 +39,7 @@
p
- if pkg.visits > 0
' #{pkg.visits} other people were interested in this package here.
' The newest known version of this software is #{pkg.version}
' The newest known version of this software is #{pkg.upstream_version}
- if pkg.updated_at
' (Information last updated #{time_ago_in_words(pkg.updated_at)} ago.)
// show which distributions have this package available

View file

@ -17,13 +17,13 @@
.imgcaption =screenshot.description
- if screenshot.version.present?
.imgcaption
em from version #{screenshot.version}
- if user_signed_in?
em from version #{screenshot.upstream_version}
- if user_signed_in? and current_user.is_admin?
.imgcaption
em Admin status: #{screenshot.adminstatus}
span.label.secondary #{screenshot.adminstatus}
// Is the user an admin?
- if user_signed_in?
- 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)
- elsif screenshot.uploaderhash == session[:token]