Statistics added to package view.
This commit is contained in:
parent
b7e82757eb
commit
7b0dca88b3
1 changed files with 24 additions and 12 deletions
|
|
@ -57,28 +57,18 @@
|
||||||
|
|
||||||
.small-5.medium-5.columns
|
.small-5.medium-5.columns
|
||||||
.bigpanel
|
.bigpanel
|
||||||
|
// long description
|
||||||
p.subtitle
|
p.subtitle
|
||||||
= fa_icon 'info-circle'
|
= fa_icon 'info-circle'
|
||||||
' Description
|
' Description
|
||||||
// TODO: split long_description by <p> tags
|
|
||||||
- if @package.long_description.present?
|
- if @package.long_description.present?
|
||||||
= render(partial: 'long_description', locals: {text: @package.long_description})
|
= render(partial: 'long_description', locals: {text: @package.long_description})
|
||||||
/ p =@package.long_description
|
|
||||||
- else
|
- else
|
||||||
p Sorry - no more information available.
|
p Sorry - no more information available.
|
||||||
- if @package.homepage.present?
|
|
||||||
hr
|
|
||||||
p.subtitle
|
|
||||||
= fa_icon 'home'
|
|
||||||
' Homepage
|
|
||||||
p
|
|
||||||
= link_to @package.homepage, @package.homepage, target: '_blank'
|
|
||||||
/ hr
|
|
||||||
/ p.subtitle Newest known version
|
|
||||||
/ p =@package.version
|
|
||||||
|
|
||||||
hr
|
hr
|
||||||
|
|
||||||
|
// upload new screenshots
|
||||||
p.subtitle
|
p.subtitle
|
||||||
a.expand data-open="upload-modal"
|
a.expand data-open="upload-modal"
|
||||||
= fa_icon 'upload'
|
= fa_icon 'upload'
|
||||||
|
|
@ -87,6 +77,28 @@
|
||||||
' Please help extend the collection of screenshots.
|
' Please help extend the collection of screenshots.
|
||||||
' Just make a screenshot and upload it here. You don't
|
' Just make a screenshot and upload it here. You don't
|
||||||
' need to register or anything.
|
' need to register or anything.
|
||||||
|
|
||||||
|
// homepage
|
||||||
|
- if @package.homepage.present?
|
||||||
|
hr
|
||||||
|
p.subtitle
|
||||||
|
= fa_icon 'home'
|
||||||
|
' Homepage
|
||||||
|
p
|
||||||
|
= link_to @package.homepage, @package.homepage, target: '_blank'
|
||||||
|
|
||||||
|
// statistics
|
||||||
|
hr
|
||||||
|
p.subtitle
|
||||||
|
= fa_icon 'bar-chart'
|
||||||
|
' Statistics
|
||||||
|
p
|
||||||
|
' This page was visited #{@package.visits} times.
|
||||||
|
' This information was last updated
|
||||||
|
' #{time_ago_in_words(@package.updated_at)} ago.
|
||||||
|
' The newest known version of this software is #{@package.version}
|
||||||
|
// show which distributions have this package available
|
||||||
|
|
||||||
// Modal upload window
|
// Modal upload window
|
||||||
#upload-modal.reveal data-reveal=true role='dialog'
|
#upload-modal.reveal data-reveal=true role='dialog'
|
||||||
h1 Upload new screenshots
|
h1 Upload new screenshots
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue