<%= link_to data_vault_path, class: 'grey-text tooltipped', style: 'position: relative; top: 4px;', data: { position: 'bottom', enterDelay: '500', tooltip: "Back to your Data Vault" } do %> arrow_back <% end %> Your notebook's image uploads

used
<%= Filesize.from("#{@used_kb}KB").pretty %>
remaining
<%= (current_user.upload_bandwidth_kb) > 0 ? Filesize.from("#{@remaining_kb}KB").pretty : '-' + Filesize.from("#{@remaining_kb}KB").pretty %>
<% percent = current_user.upload_bandwidth_kb %>
Did you know? Premium users get an extra 10GB of storage space, but all users can earn even more storage space by referring their friends to Notebook.ai. <%= link_to 'Learn more.', referrals_path, class: 'orange-text text-lighten-3' %>
<% if current_user.image_uploads.empty? %>
Whenever you upload any images to your notebook pages, you'll be able to view them all in a single place from here.
<% end %> <% current_user.image_uploads.includes(:content).each do |upload| %> <% next unless upload.content.present? %>
<%= image_tag upload.src(:medium), class: 'activator' %> <%= upload.content.name %> <%= upload.content.class.icon %>
  • Uploaded <%= time_ago_in_words upload.created_at %> ago (<%= upload.created_at.strftime("%m/%d/%Y")%>)
  • Using <%= Filesize.from("#{upload.src_file_size / 1000}KB").pretty %>
Image details close
  • Original filename
    <%= upload.src_file_name %>

  • Image type
    <%= upload.src_content_type %>

  • Image size
    <%= Filesize.from("#{upload.src_file_size / 1000}KB").pretty %> (<%= upload.src_file_size %> bytes)

  • Uploaded
    <%= upload.created_at.strftime("%m/%d/%Y") %> (<%= time_ago_in_words upload.created_at %> ago)

  • Attached to
    <%= link_to upload.content.name, upload.content %>
<%= link_to 'View original', upload.src(:original), class: 'small', target: '_new' %> <%= link_to 'Delete image', image_deletion_path(upload.id), class: 'small right', method: 'delete', data: { confirm: "Are you sure you want to delete this image? This cannot be undone." } %>
<% end %>