diff --git a/app/models/folder.rb b/app/models/folder.rb index de82df8b..2da7398e 100644 --- a/app/models/folder.rb +++ b/app/models/folder.rb @@ -9,7 +9,7 @@ class Folder < ApplicationRecord end def self.color - 'lighten-1 teal bg-teal-600' + 'lighten-1 teal bg-notebook-blue' end def self.text_color diff --git a/app/views/content/display/_tailwind_foldered_index.html.erb b/app/views/content/display/_tailwind_foldered_index.html.erb index 56b563b8..9fb7baf1 100644 --- a/app/views/content/display/_tailwind_foldered_index.html.erb +++ b/app/views/content/display/_tailwind_foldered_index.html.erb @@ -11,784 +11,753 @@ end %> -
-
- -
- -
-
-
- + +
+ <% if current_user.can_create?(content_type_class) %> + <%= link_to new_polymorphic_path(content_type_class) do %> + -
-
- -
-
-
-
-
- - -
-
- <%= image_tag asset_path(header_image), 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 %> -
- <% else %> -
- by <%= link_to current_user.display_name, current_user, class: User.text_color %> -
- <% end %> -
-
- <% if Rails.application.config.content_type_names.include?(content_type_name) %> - <%= link_to attribute_customization_path(content_type_name.downcase) do %> - - <% end %> - <% 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 %> -
-
-
-
-
- - -
- - - - -
-

Filters

- -
-
-
-
- -
- - -
- - - - - -
-
- - - <% if filtered_page_tags.any? %> -
-
-

- 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 %> -
-
-
-
- <% end %> -
-
- - - <% if @questioned_content && @attribute_field_to_question %> - <% serendipitous_category = @attribute_field_to_question.attribute_category %> - - - -
-
- - - - - -
-
<% end %> - - - <%# render partial: 'content/components/list_filter_bar', locals: { content_type: content_type_class } %> - - <%# to be made into new card list partial? %> - <% if content.any? %> - <%= render partial: content_display_partial, locals: { content: content } %> - <% end %> - - <% if content.empty? %> -
- <% if Rails.application.config.content_type_names.include?(content_type_name) %> -
- <%= link_to attribute_customization_path(content_type_name.downcase) do %> - - <% end %> -
- <% end %> -
- <%= link_to new_polymorphic_path(content_type_class) do %> - - <% end %> -
-
- <% end %> -
- - - - - - - + <% end %>
- -