Statistics added to package view.

This commit is contained in:
Christoph Haas 2016-08-11 18:23:53 +02:00
parent b7e82757eb
commit 7b0dca88b3

View file

@ -57,28 +57,18 @@
.small-5.medium-5.columns
.bigpanel
// long description
p.subtitle
= fa_icon 'info-circle'
' Description
// TODO: split long_description by <p> tags
- if @package.long_description.present?
= render(partial: 'long_description', locals: {text: @package.long_description})
/ p =@package.long_description
- else
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
// upload new screenshots
p.subtitle
a.expand data-open="upload-modal"
= fa_icon 'upload'
@ -87,6 +77,28 @@
' Please help extend the collection of screenshots.
' Just make a screenshot and upload it here. You don't
' 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
#upload-modal.reveal data-reveal=true role='dialog'
h1 Upload new screenshots