Stuff
This commit is contained in:
parent
098afc1924
commit
193d44f89a
27 changed files with 331 additions and 707 deletions
2
app/views/admin/integration.html.slim
Normal file
2
app/views/admin/integration.html.slim
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
h1 Admin#integration
|
||||
p Find me in app/views/admin/integration.html.slim
|
||||
2
app/views/admin/screenshots.html.slim
Normal file
2
app/views/admin/screenshots.html.slim
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
h1 Admin#screenshots
|
||||
p Find me in app/views/admin/screenshots.html.slim
|
||||
2
app/views/admin/status.html.slim
Normal file
2
app/views/admin/status.html.slim
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
h1 Admin#status
|
||||
p Find me in app/views/admin/status.html.slim
|
||||
|
|
@ -22,9 +22,6 @@
|
|||
h2 Single-sign-on provider
|
||||
p You logged in using #{current_user.pretty_provider}.
|
||||
|
||||
h2 The first time you were here was
|
||||
p = current_user.created_at.to_formatted_s(:long_ordinal)
|
||||
|
||||
h2 Number of screenshots you uploaded
|
||||
p = current_user.screenshots.count
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue