59 lines
1.8 KiB
Text
59 lines
1.8 KiB
Text
// Right-side panel on details page to display further information
|
|
// about a package.
|
|
.bigpanel.sticky data-sticky=true data-anchor="metadata"
|
|
// long description
|
|
p.subtitle
|
|
= icon('info')
|
|
' Description
|
|
- if pkg.long_description.present?
|
|
= render(partial: 'long_description', locals: {text: pkg.long_description})
|
|
- else
|
|
p Sorry - no more detailed information available.
|
|
|
|
hr
|
|
|
|
// upload new screenshots
|
|
p.subtitle
|
|
= icon('upload')
|
|
' Upload more screenshots
|
|
p
|
|
' Please help extend the collection of screenshots.
|
|
' Just make a screenshot and upload it here. You don't
|
|
' need to register or anything.
|
|
a.button.expand.uploadbutton href=upload_path(pkg.name)
|
|
= icon('upload', class: 'icon')
|
|
' Upload a screenshot
|
|
|
|
p
|
|
em Hint: upload an image here from your clipboard with Ctrl-V
|
|
|
|
// homepage
|
|
- if pkg.homepage.present?
|
|
hr
|
|
p.subtitle
|
|
= icon('house')
|
|
' Homepage
|
|
p
|
|
= link_to pkg.homepage, pkg.homepage, target: '_blank'
|
|
|
|
// APT package download link
|
|
hr
|
|
p.subtitle
|
|
= icon('download')
|
|
' Install this software package
|
|
p
|
|
' If the package is available for the distribution you are
|
|
' currently using on your computer then install the software
|
|
' by clicking on…
|
|
a.button.small.secondary href="apt:#{pkg.name}" Install #{pkg.name}
|
|
|
|
/ p.subtitle
|
|
/ = icon('fa-solid', 'bar-chart')
|
|
/ ' Statistics
|
|
/ p
|
|
/ - if pkg.visits > 0
|
|
/ ' #{pkg.visits} other people were interested in this package here.
|
|
/ ' 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
|