From 0925b264c859755bccd412b748e3527d15fa8e2f Mon Sep 17 00:00:00 2001 From: Andrew Brown Date: Fri, 18 Jun 2021 16:45:46 -0700 Subject: [PATCH] improve doc table design --- .../content/list/_document_table.html.erb | 27 ++++++++++++------- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/app/views/content/list/_document_table.html.erb b/app/views/content/list/_document_table.html.erb index 03f8fa2d..c530c16f 100644 --- a/app/views/content/list/_document_table.html.erb +++ b/app/views/content/list/_document_table.html.erb @@ -3,16 +3,19 @@ - - - + + + + <% content_list.each do |document| %> - + +
TitleLengthLast editedTitleLengthLast edited
+ <%= Document.icon %> +
- <%= Document.icon %> <% if document.favorite? @@ -34,11 +37,17 @@ <% end %> - - <%= document.title %> - +
+ + <%= document.title %> + +
+
+ by <%= link_to document.user.display_name, document.user, class: "#{User.color}-text" %> +
+
-
+
<% if current_user.can_read?(document) %> <%= link_to polymorphic_path(document), class: 'blue white-text text-lighten-1 btn-flat' do %> <%= content_type.icon %>