diff --git a/app/views/packages/details.slim b/app/views/packages/details.slim index 78fb6bd..8ea07dd 100644 --- a/app/views/packages/details.slim +++ b/app/views/packages/details.slim @@ -57,28 +57,18 @@ .small-5.medium-5.columns .bigpanel + // long description p.subtitle = fa_icon 'info-circle' ' Description - // TODO: split long_description by

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