diff --git a/app/assets/images/card-headers/documents.jpg b/app/assets/images/card-headers/documents-old.jpg
similarity index 100%
rename from app/assets/images/card-headers/documents.jpg
rename to app/assets/images/card-headers/documents-old.jpg
diff --git a/app/views/content/list/_dense_cards.html.erb b/app/views/content/list/_dense_cards.html.erb
new file mode 100644
index 00000000..21b7bded
--- /dev/null
+++ b/app/views/content/list/_dense_cards.html.erb
@@ -0,0 +1,111 @@
+
+ <% content_list.each.with_index do |content, i| %>
+
+
+
+ <%= render partial: 'content/display/favorite_control', locals: { content: content } %>
+ <% content_image = asset_path("card-headers/#{content_type.name.downcase.pluralize}.jpg") %>
+ <% if content.respond_to?(:image_uploads) %>
+ <% images = content.image_uploads %>
+ <% if images.any? %>
+ <% content_image = images.sample.src(:medium) %>
+ <% end %>
+ <% end %>
+
+
+
+
+ <%= ContentFormatterService.show(text: content.name.presence || 'Untitled', viewing_user: current_user) %>
+
+
+ <% if content.respond_to?(:page_tags) %>
+
+ <% content.page_tags.each do |tag| %>
+ <% if user_signed_in? && content.user == current_user %>
+ <%=
+ link_to send(
+ "page_tag_#{content.class.name.downcase.pluralize}_path",
+ slug: PageTagService.slug_for(tag.tag)
+ ) do
+ %>
+
+ <% end %>
+ <% else %>
+
+ <% end %>
+ <% end %>
+
+ <% end %>
+
+
+
+ <% if current_user.can_update?(content) %>
+ <%= link_to edit_polymorphic_path(content), class: 'green-text right', target: content.is_a?(Document) ? '_new' : '_self' do %>
+ Edit
+ <% end %>
+ <% end %>
+ <% if current_user.can_read?(content) %>
+ <%= link_to polymorphic_path(content), class: 'blue-text text-lighten-1' do %>
+ View
+ <% end %>
+ <% end %>
+
+
+
+ <% end %>
+
+ <% if local_assigns.fetch(:show_new_button, true) %>
+ <% if current_user.can_create?(content_type) %>
+
+ <%= link_to new_polymorphic_path(content_type), class: 'white-text' do %>
+
+
+
+ add
+
+
+ New
+ <%= content_type.name %>
+
+
+
+ <% end %>
+
+ <% else %>
+
+
+
+
+ <%= content_type.icon %>
+
+
+ An active
+ <%= link_to 'Notebook.ai Premium', subscription_path, class: 'blue-text text-darken-2' %> subscription
+ is required to create additional
+ <%= content_type.name.downcase %> pages, but pages you've already created will always
+ be available here.
+
+
+
+
+ <% end %>
+ <% end %>
+
+ <% if local_assigns.fetch(:show_template_editor_form, false) %>
+
+ <%= link_to attribute_customization_path(content_type: content_type.name.downcase), class: 'white-text' do %>
+
+
+
+ <%= content_type.icon %>
+
+
+ Customize
+ template
+
+
+
+ <% end %>
+
+ <% end %>
+
diff --git a/app/views/content/list/_document_table.html.erb b/app/views/content/list/_document_table.html.erb
index 3d8b302c..7de00777 100644
--- a/app/views/content/list/_document_table.html.erb
+++ b/app/views/content/list/_document_table.html.erb
@@ -37,28 +37,33 @@
<%= document.title %>
-
- <% if current_user.can_update?(document) %>
- <%= link_to edit_polymorphic_path(document), class: 'green white-text btn-flat', target: document.is_a?(Document) ? '_new' : '_self' do %>
- <%= content_type.icon %>
- Edit
- <% end %>
- <% end %>
<% if current_user.can_read?(document) %>
<%= link_to polymorphic_path(document), class: 'blue white-text text-lighten-1 btn-flat' do %>
<%= content_type.icon %>
View
<% end %>
<% end %>
- <%= link_to '#', class: 'btn-flat orange white-text' do %>
+ <% if current_user.can_update?(document) %>
+ <%= link_to edit_polymorphic_path(document), class: 'green white-text btn-flat', target: document.is_a?(Document) ? '_new' : '_self' do %>
+ <%= content_type.icon %>
+ Edit
+ <% end %>
+ <% end %>
+ <%= link_to analysis_document_path(document), class: 'btn-flat orange white-text' do %>
bar_chart
Analyze
<% end %>
- <%= document.reading_estimate %>
- <%# pluralize 0, 'word' %>
+
+ text_snippet
+ <%= pluralize document.word_count, 'word' %>
+
+
+ timer
+ <%= document.reading_estimate %>
+
|
">
diff --git a/app/views/documents/index.html.erb b/app/views/documents/index.html.erb
index 6aa070d3..9f410224 100644
--- a/app/views/documents/index.html.erb
+++ b/app/views/documents/index.html.erb
@@ -15,7 +15,7 @@
Recently-edited documents
- <%= render partial: 'content/list/cards', locals: { content_list: @documents.first(3), content_type: Document, show_new_button: false } %>
+ <%= render partial: 'content/list/dense_cards', locals: { content_list: @recent_documents, content_type: Document, show_new_button: false } %>
|