@@ -520,7 +518,7 @@
<% content_counts_per_type.each do |content_type, count| %>
- <%= content_class_from_name(content_type).icon %>
+ <%= content_class_from_name(content_type).icon %>
<%= count %>
<%= content_type.pluralize count %>
@@ -531,7 +529,7 @@
- spellcheck
+ spellcheck
<% total_word_count = 0 %>
<%= number_with_delimiter total_word_count %>
diff --git a/app/views/content/index.html.erb b/app/views/content/index.html.erb
index aa97f022..ca1bfb8a 100644
--- a/app/views/content/index.html.erb
+++ b/app/views/content/index.html.erb
@@ -1,688 +1,13 @@
-<%= render partial: 'content/display/tailwind_foldered_index', locals: {
- header_image: "card-headers/#{@content_type_name.downcase.pluralize}.webp",
- content: @content,
- content_display_partial: "content/display/tailwind_content_list/card_index",
- mixed_content_types: false,
- folders: @folders,
- content_type_class: @content_type_class,
- content_type_name: @content_type_name,
- filtered_page_tags: @filtered_page_tags,
- page_tags: @page_tags,
-} %>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <%= image_tag asset_path("card-headers/#{@content_type_name.downcase.pluralize}.webp"), class: 'h-32 w-full object-cover lg:h-48' %>
-
-
-
-
-
-
-
- <% if @universe_scope %>
- <%= link_to @universe_scope do %>
- <%= image_tag @universe_scope.random_image_including_private(format: :hero), class: 'h-24 w-24 rounded-full ring-4 ring-purple-800 sm:h-32 sm:w-32' %>
- <% end %>
- <% else %>
- <%= image_tag current_user.image_url, class: 'h-24 w-24 rounded-full ring-4 ring-green-800 sm:h-32 sm:w-32' %>
- <% end %>
-
-
-
-
-
- - Showing <%= pluralize @content.count, @content_type_name.downcase %> -
- <% if @universe_scope %> -
- in <%= link_to @universe_scope.name, @universe_scope, class: Universe.text_color %>
-
- <% end %>
-
- <%= link_to attribute_customization_path(@content_type_name.downcase) do %>
-
- <% end %>
-
- <% if current_user.can_create?(@content_type_class) || PermissionService.user_has_active_promotion_for_this_content_type(user: current_user, content_type: @content_type_class.name) %>
- <%= link_to new_polymorphic_path(@content_type_class) do %>
-
- <% end %>
- <% else %>
- <%= link_to subscription_path do %>
-
- <% end %>
- <% end %>
-
-
-
- Ricardo Cooper
-
-
-
-
-
-
- <%# render partial: 'content/components/list_filter_bar', locals: { content_type: @content_type_class } %>
-
- <%# to be made into new card list partial? %>
- <% if @content.any? %>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Filters
- -Filters
- -
-
-
-
- <% if @filtered_page_tags.any? %>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- <% end %>
-
-
- - Showing only <%= @content_type_name.pluralize %> with <%= 'tag'.pluralize(@filtered_page_tags.count) %> - , active -
- - - -
-
-
- <% @filtered_page_tags.each do |page_tag| %>
-
- <%= page_tag.tag %>
- <%= link_to(polymorphic_path(@content_type_class, { slug: params.fetch(:slug, []) - [page_tag.slug] })) do %>
-
- <% end %>
-
- <% end %>
-
-
- <% @content.each do |content| %>
-
- <% end %>
-
- <% if @content.empty? %>
-
- <%= link_to content.view_path do %>
-
- <% end %>
-
- <%= image_tag content.random_image_including_private(format: :small), class: 'h-64 rounded-t w-full object-cover object-center mb-6' %>
-
- <% end %>
-
- star_outline
-
- - <%= content.page_type %> -
-- <%= content.name %> -
-
-
- <% end %>
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-- Folders - <%= @folders.count %> - - <%= link_to '#', class: "float-right text-xs #{Folder.color} hover:bg-teal-500 text-white rounded-lg px-2 py-1" do %> - Create folder - <% end %> -
--
- <% @folders.each do |folder| %>
- <%= link_to folder, class: 'group' do %>
-
-
- - <%= Folder.icon %> ------
<%= folder.title %>
-16 documents
-- --
- <% end %>
- <% end %>
-
-
-
-
-
-
-
-
-
-
-
+<%=
+ render partial: 'content/display/tailwind_foldered_index', locals: {
+ header_image: "card-headers/#{@content_type_name.downcase.pluralize}.webp",
+ content: @content,
+ content_display_partial: "content/display/tailwind_content_list/card_index",
+ mixed_content_types: false,
+ folders: @folders,
+ content_type_class: @content_type_class,
+ content_type_name: @content_type_name,
+ filtered_page_tags: @filtered_page_tags,
+ page_tags: @page_tags,
+ }
+%>
- Documents - <%= @folders.count %> - - <%= link_to '#', class: "float-right text-xs #{Document.color} hover:bg-teal-600 text-white rounded-lg px-2 py-1" do %> - Create document - <% end %> -
- -
-
-
-
-
-
-
-
-
-
-
- | Name | -Title | -Status | -Role | -- Edit - | -
|---|---|---|---|---|
|
-
-
-
-
-
-
- Jane Cooper
- jane.cooper@example.com
- |
-
- Regional Paradigm Technician
- Optimization
- |
- - Active - | -Admin | -- Edit - | -