diff --git a/app/views/content/display/_tailwind_foldered_index.html.erb b/app/views/content/display/_tailwind_foldered_index.html.erb index 027cb330..e77d7bb3 100644 --- a/app/views/content/display/_tailwind_foldered_index.html.erb +++ b/app/views/content/display/_tailwind_foldered_index.html.erb @@ -88,6 +88,25 @@ + + <% if content.any? %> + <% recent_pages = content.sort_by(&:updated_at).reverse.first(5) %> +
+

Recently Edited

+
+ <% recent_pages.each do |page| %> + <%= link_to (page.is_a?(ContentPage) ? page.view_path : page), class: "group flex items-center px-3 py-2 text-sm font-medium text-gray-700 rounded-lg hover:bg-gray-100 hover:text-gray-900 transition-colors" do %> + <%= page.icon %> +
+ <%= page.name %> + <%= distance_of_time_in_words(page.updated_at, Time.current) %> ago +
+ <% end %> + <% end %> +
+
+ <% end %> + <% non_folder_content_types = content_counts_per_type.reject { |type, _| type == 'Folder' } %> <% if non_folder_content_types.count > 1 %> @@ -221,7 +240,7 @@
<% if @universe_scope %> <%= link_to @universe_scope do %> - <%= image_tag @universe_scope.random_image_including_private(format: :hero), class: 'h-16 w-16 rounded-xl ring-4 ring-white shadow-lg lg:h-20 lg:w-20' %> + <%= image_tag @universe_scope.random_image_including_private(format: :hero), class: 'h-16 w-24 rounded-xl ring-4 ring-white shadow-lg lg:h-20 lg:w-32 object-cover' %> <% end %> <% else %> <%= image_tag current_user.image_url, class: 'h-16 w-16 rounded-xl ring-4 ring-white shadow-lg lg:h-20 lg:w-20' %>