<%= 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 recycle bin

Whenever you delete a page from your notebook, it ends up here for a little while. While a page is here, you can recover it at any time to add it back to your notebook. If not recovered, the page will be automatically and permanently deleted after a certain period of time.


In other words, use this page if you've accidentally deleted a page and need to recover it.


Premium users can recover pages up to 7 days after their deletion.
All other users can recover pages up to 2 days after their deletion.

<%= image_tag 'tristan/small.webp', class: 'tooltipped tristan', data: { position: 'left', enterDelay: '500', tooltip: "Hey, I'm Tristan! I'm happy to help you around Notebook.ai." } %>
<% showed_any_content = false %> <% @content_pages.each do |content_type_name, content_list| %> <% next unless content_list.any? %> <% showed_any_content = true %> <% content_type = content_class_from_name(content_type_name) category_ids_for_this_content_type = AttributeCategory.where(entity_type: content_type_name.downcase, user_id: current_user).pluck(:id) name_field = AttributeField.find_by(field_type: 'name', attribute_category_id: category_ids_for_this_content_type) content_ids = content_list.pluck(:id) if name_field list_name_lookup_cache = Hash[ name_field.attribute_values.where( entity_type: content_type_name ).pluck(:entity_id, :value) ] else list_name_lookup_cache = {} end %>

<%= content_type_name.pluralize %>

    <% content_list.each do |content| %>
  • <%= link_to content do %> <%= content.class.icon %> <% end %> <%= (content.respond_to?(:label) ? content.label : list_name_lookup_cache[content.id].presence || content.name) %>

    " style="font-size: 80%"> delete deleted <%= time_ago_in_words content.deleted_at %> ago

    " style="font-size: 80%"> alarm recoverable for the next <%= distance_of_time_in_words(DateTime.current, content.deleted_at + @maximum_recovery_time) %>

    <% if content.respond_to?(:image_uploads) %>

    image <%= pluralize content.image_uploads.count, 'uploaded image' %>

    <% end %>

    <%= form_for content, html: { style: 'float: left' } do |f| %> <%= f.hidden_field :deleted_at, value: nil %> <%= f.submit 'Recover page', class: "#{content_class_from_name(content_type_name).color} lighten-4 btn black-text tooltipped", data: { tooltip: "Un-delete and add this page back to your notebook." } %> <% end %> <%= form_for content do |f| %> <%= f.hidden_field :deleted_at, value: "1/1 1970".to_date %> <%= f.submit 'Delete immediately', class: 'white btn black-text tooltipped', data: { tooltip: "Delete this page immediately and remove it from your recycle bin." } %> <% end %>

  • <% end %>
<% end %> <% if !showed_any_content %>

Looks like you haven't deleted any pages recently. If you do, they will show up here for a limited time.

<% end %>