// Show users' own uploaded screenshots in this session

/ = link_to 'Back', :back, class: 'button small'

.grid-container.packagepage
  h1 Screenshots you uploaded
  
  - @packages.each do |package|
    h2 Package #{package.name}
    .subtitle
      = package.description

  .small-9.large-10.columns
    - if @current_users_screenshots.length>0
      .grid-x.small-up-1.medium-up-3.large-up-4.grid-thumbnails
        - @current_users_screenshots.each do |screenshot|
          .column
            / TODO: old Paperclip style
            a.black.fancybox href=screenshot.simage_url(:large)
              div.grid-thumbnail
                = image_tag(screenshot.simage_url(:medium), alt: screenshot.caption, class: 'thumbnail')
              div
                = screenshot.description
