From e02f99d354552f7f5a3385588005e22e40584779 Mon Sep 17 00:00:00 2001 From: Andrew Brown Date: Sat, 14 Jun 2025 23:50:14 -0500 Subject: [PATCH] fix sidebar active count stylings --- app/views/layouts/tailwind.html.erb | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/app/views/layouts/tailwind.html.erb b/app/views/layouts/tailwind.html.erb index be5eb7fd..08268673 100644 --- a/app/views/layouts/tailwind.html.erb +++ b/app/views/layouts/tailwind.html.erb @@ -120,22 +120,22 @@
- <%= link_to main_app.timelines_path, class: "flex items-center px-2 sm:px-4 py-2 cursor-pointer group rounded-l-full transition #{'bg-notebook-blue text-white' if current_page?(main_app.timelines_path)} hover:bg-notebook-blue hover:text-white" do %> - <%= Timeline.icon %> - Timelines - - <%= @current_user_content.fetch('Timeline', []).count %> - - <% end %> - <%= link_to main_app.documents_path, class: "flex items-center px-2 sm:px-4 py-2 cursor-pointer group rounded-l-full transition #{'bg-notebook-blue text-white' if current_page?(main_app.documents_path)} hover:bg-notebook-blue hover:text-white" do %> <%= Document.icon %> Documents - + <%= @current_user_content.fetch('Document', []).count %> <% end %> + <%= link_to main_app.timelines_path, class: "flex items-center px-2 sm:px-4 py-2 cursor-pointer group rounded-l-full transition #{'bg-notebook-blue text-white' if current_page?(main_app.timelines_path)} hover:bg-notebook-blue hover:text-white" do %> + <%= Timeline.icon %> + Timelines + + <%= @current_user_content.fetch('Timeline', []).count %> + + <% end %> + <%= link_to main_app.prompts_path, class: "flex items-center px-2 sm:px-4 py-2 cursor-pointer group rounded-l-full transition #{'bg-notebook-blue text-white' if current_page?(main_app.prompts_path)} hover:bg-notebook-blue hover:text-white" do %> lightbulb Prompts @@ -172,7 +172,7 @@ <%= link_to main_app.page_collections_path, class: "flex items-center px-2 sm:px-4 py-2 cursor-pointer group rounded-l-full transition #{'bg-notebook-blue text-white' if current_page?(main_app.page_collections_path)} hover:bg-notebook-blue hover:text-white" do %> <%= PageCollection.icon %> Collections - + <%= @current_user_content.fetch('PageCollection', []).count %> <% end %> @@ -180,7 +180,7 @@ <%= link_to main_app.thredded_path, class: "flex items-center px-2 sm:px-4 py-2 cursor-pointer group rounded-l-full transition #{'bg-notebook-blue text-white' if current_page?(main_app.thredded_path)} hover:bg-notebook-blue hover:text-white" do %> forum Discussions - + 0 <% end %>