// 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
    = fa_icon 'info-circle'
    '  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
    = fa_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.small.expand.uploadbutton href=upload_path(pkg.name) Upload a screenshot

    p
      em Hint: upload an image here from your clipboard with Ctrl-V

  // homepage
  - if pkg.homepage.present?
    hr
    p.subtitle
      = fa_icon 'home'
      '  Homepage
    p
      = link_to pkg.homepage, pkg.homepage, target: '_blank'

  // APT package download link
  hr
  p.subtitle
    = fa_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}

  // statistics
  / hr
  / p.subtitle
  /   = fa_icon '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
