diff --git a/app/views/content/display/_tailwind_foldered_index.html.erb b/app/views/content/display/_tailwind_foldered_index.html.erb index 5290a60e..5477af41 100644 --- a/app/views/content/display/_tailwind_foldered_index.html.erb +++ b/app/views/content/display/_tailwind_foldered_index.html.erb @@ -14,7 +14,7 @@
- -
-
-
-
- - <% if @parent_folder %> - <%= link_to @parent_folder, class: "p-2 text-gray-500 hover:text-gray-700 hover:bg-gray-100 rounded-lg transition-colors" do %> - arrow_upward - <% end %> - <% else %> - <% - context_class = @folder.context.constantize rescue Document - - # Default to documents_path if the context class doesn't have a folder association - if context_class.column_names.include?('folder_id') - context_path = context_class.name.downcase.pluralize + "_path" - context_name = @folder.context.pluralize - else - context_path = "documents_path" - context_name = "Documents" - end - %> - <%= link_to send(context_path), class: "p-2 text-gray-500 hover:text-gray-700 hover:bg-gray-100 rounded-lg transition-colors" do %> - arrow_upward - <% end %> - <% end %> - - -
- -

<%= @folder.title %>

-
-
- - -
- -
+}" class="h-screen flex bg-gray-50"> + + +
+
+ + +
+
+ + + + + + + +
+ +
+
+
+
+ + + + + <% if @parent_folder %> + <%= link_to @parent_folder, class: "p-2 text-gray-500 hover:text-gray-700 hover:bg-gray-100 rounded-lg transition-colors" do %> + arrow_upward + <% end %> + <% else %> + <% + context_class = @folder.context.constantize rescue Document + + # Default to documents_path if the context class doesn't have a folder association + if context_class.column_names.include?('folder_id') + context_path = context_class.name.downcase.pluralize + "_path" + context_name = @folder.context.pluralize + else + context_path = "documents_path" + context_name = "Documents" + end + %> + <%= link_to send(context_path), class: "p-2 text-gray-500 hover:text-gray-700 hover:bg-gray-100 rounded-lg transition-colors" do %> + arrow_upward + <% end %> + <% end %> + + +
+ +
+

<%= @folder.title %>

+

+ <% if @universe_scope %> + in <%= link_to @universe_scope.name, @universe_scope, class: "#{Universe.text_color} font-medium hover:underline" %> + <% else %> + by <%= link_to current_user.display_name, current_user, class: "#{User.text_color} font-medium hover:underline" %> + <% end %> +

+
+
+
+ + +
+ +
+
+
+
+
<% if @child_folders.any? %>