2025-02-21 11:57:59 -05:00
|
|
|
<%= render "layouts/shared/htmldoc" do %>
|
|
|
|
<div class="flex h-full bg-gray-50">
|
|
|
|
<nav class="flex flex-col shrink-0 w-[84px] py-4 mr-3">
|
|
|
|
<div class="pl-2 mb-3">
|
|
|
|
<%= link_to root_path, class: "block" do %>
|
|
|
|
<%= image_tag "logomark-color.svg", class: "w-9 h-9 mx-auto" %>
|
2024-11-15 13:49:37 -05:00
|
|
|
<% end %>
|
2024-10-03 14:42:22 -04:00
|
|
|
</div>
|
2024-07-18 14:39:38 -04:00
|
|
|
|
2025-02-21 11:57:59 -05:00
|
|
|
<ul class="space-y-0.5">
|
|
|
|
<li>
|
|
|
|
<%= render "layouts/sidebar/nav_item", name: "Home", path: root_path, icon_key: "pie-chart" %>
|
|
|
|
</li>
|
2024-05-17 09:09:32 -04:00
|
|
|
|
2025-02-21 11:57:59 -05:00
|
|
|
<li>
|
|
|
|
<%= render "layouts/sidebar/nav_item", name: "Transactions", path: transactions_path, icon_key: "credit-card" %>
|
|
|
|
</li>
|
2024-05-17 09:09:32 -04:00
|
|
|
|
2025-02-21 11:57:59 -05:00
|
|
|
<li>
|
|
|
|
<%= render "layouts/sidebar/nav_item", name: "Budgets", path: budgets_path, icon_key: "layout-grid" %>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
<div class="pl-2 mt-auto mx-auto">
|
|
|
|
<%= render "users/user_menu", user: Current.user %>
|
|
|
|
</div>
|
|
|
|
</nav>
|
|
|
|
|
|
|
|
<%= tag.div class: class_names("py-4 shrink-0 h-full overflow-y-auto transition-all duration-300", Current.user.show_sidebar? ? "w-[260px]" : "w-0"), data: { sidebar_target: "panel" } do %>
|
|
|
|
<% if content_for?(:sidebar) %>
|
|
|
|
<%= yield :sidebar %>
|
|
|
|
<% else %>
|
|
|
|
<div id="account-sidebar-tabs" data-turbo-permanent>
|
|
|
|
<%= render "accounts/account_sidebar_tabs", family: Current.family %>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
2024-05-30 20:55:18 -04:00
|
|
|
|
2025-02-21 11:57:59 -05:00
|
|
|
<%= tag.main class: class_names("px-10 py-4 grow h-full", require_upgrade? ? "relative overflow-hidden" : "overflow-y-auto") do %>
|
|
|
|
<% if require_upgrade? %>
|
|
|
|
<div class="absolute inset-0 px-10 h-full w-full z-50">
|
|
|
|
<%= render "shared/subscribe_modal" %>
|
|
|
|
</div>
|
|
|
|
<% end %>
|
2024-05-17 09:09:32 -04:00
|
|
|
|
2025-02-21 11:57:59 -05:00
|
|
|
<%= tag.div class: class_names("mx-auto w-full h-full", Current.user.show_sidebar? ? "max-w-4xl" : "max-w-5xl"), data: { sidebar_target: "content" } do %>
|
2025-02-25 10:14:07 -06:00
|
|
|
<% unless controller_path.start_with?('settings/') %>
|
|
|
|
<% if content_for?(:breadcrumbs) %>
|
|
|
|
<%= yield :breadcrumbs %>
|
|
|
|
<% else %>
|
|
|
|
<%= render "layouts/shared/breadcrumbs", breadcrumbs: @breadcrumbs %>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<% if content_for?(:page_header) %>
|
|
|
|
<%= yield :page_header %>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
2025-02-21 11:57:59 -05:00
|
|
|
<%= yield %>
|
|
|
|
<% end %>
|
2024-04-18 07:56:51 -04:00
|
|
|
<% end %>
|
2025-02-21 11:57:59 -05:00
|
|
|
</div>
|
|
|
|
<% end %>
|