diff --git a/app/views/accounts/index.html.erb b/app/views/accounts/index.html.erb index 375d4f65d..86e726e4c 100644 --- a/app/views/accounts/index.html.erb +++ b/app/views/accounts/index.html.erb @@ -1,25 +1,21 @@ -
-

<%= t(".accounts") %>

-
-
- <%= icon( - "refresh-cw", - as_button: true, - size: "sm", - href: sync_all_accounts_path, - disabled: Current.family.syncing?, - frame: :_top - ) %> - <%= render DS::Link.new( - text: "New account", - href: new_account_path(return_to: accounts_path), - variant: "primary", - icon: "plus", - frame: :modal +<%= content_for :page_title, t(".accounts") %> +<%= content_for :page_actions do %> + <%= icon( + "refresh-cw", + as_button: true, + size: "sm", + href: sync_all_accounts_path, + disabled: Current.family.syncing?, + frame: :_top ) %> -
-
-
+ <%= render DS::Link.new( + text: "New account", + href: new_account_path(return_to: accounts_path), + variant: "primary", + icon: "plus", + frame: :modal + ) %> +<% end %> <% if @manual_accounts.empty? && @plaid_items.empty? && @simplefin_items.empty? && @lunchflow_items.empty? && @enable_banking_items.empty? && @coinstats_items.empty? && @coinbase_items.empty? && @mercury_items.empty? && @snaptrade_items.empty? && @indexa_capital_items.empty? %> <%= render "empty" %> diff --git a/app/views/categories/index.html.erb b/app/views/categories/index.html.erb index 0c873915b..c9c094396 100644 --- a/app/views/categories/index.html.erb +++ b/app/views/categories/index.html.erb @@ -1,26 +1,23 @@ -
-

<%= t(".categories") %>

+<%= content_for :page_title, t(".categories") %> +<%= content_for :page_actions do %> + <%= render DS::Menu.new do |menu| %> + <% menu.with_item( + variant: "button", + text: "Delete all", + href: destroy_all_categories_path, + method: :delete, + icon: "trash-2", + confirm: CustomConfirm.for_resource_deletion("all categories", high_severity: true)) %> + <% end %> -
- <%= render DS::Menu.new do |menu| %> - <% menu.with_item( - variant: "button", - text: "Delete all", - href: destroy_all_categories_path, - method: :delete, - icon: "trash-2", - confirm: CustomConfirm.for_resource_deletion("all categories", high_severity: true)) %> - <% end %> - - <%= render DS::Link.new( - text: t(".new"), - variant: "primary", - icon: "plus", - href: new_category_path, - frame: :modal - ) %> -
-
+ <%= render DS::Link.new( + text: t(".new"), + variant: "primary", + icon: "plus", + href: new_category_path, + frame: :modal + ) %> +<% end %>
<% if @categories.any? %> diff --git a/app/views/family_exports/index.html.erb b/app/views/family_exports/index.html.erb index 906bfa6e3..9299b4131 100644 --- a/app/views/family_exports/index.html.erb +++ b/app/views/family_exports/index.html.erb @@ -1,3 +1,5 @@ +<%= content_for :page_title, t(".title") %> + <%= settings_section title: t(".title") do %>
<% has_processing = @exports.any? { |e| e.pending? || e.processing? } %> diff --git a/app/views/family_merchants/index.html.erb b/app/views/family_merchants/index.html.erb index 0550739ef..648c8b39c 100644 --- a/app/views/family_merchants/index.html.erb +++ b/app/views/family_merchants/index.html.erb @@ -1,21 +1,18 @@ -
-

<%= t(".title") %>

- -
- <%= render DS::Link.new( - text: t(".merge"), - variant: "outline", - href: merge_family_merchants_path, - frame: :modal - ) %> - <%= render DS::Link.new( - text: t(".new"), - variant: "primary", - href: new_family_merchant_path, - frame: :modal - ) %> -
-
+<%= content_for :page_title, t(".title") %> +<%= content_for :page_actions do %> + <%= render DS::Link.new( + text: t(".merge"), + variant: "outline", + href: merge_family_merchants_path, + frame: :modal + ) %> + <%= render DS::Link.new( + text: t(".new"), + variant: "primary", + href: new_family_merchant_path, + frame: :modal + ) %> +<% end %>
diff --git a/app/views/imports/index.html.erb b/app/views/imports/index.html.erb index 4a3d9bcda..6f18c0406 100644 --- a/app/views/imports/index.html.erb +++ b/app/views/imports/index.html.erb @@ -1,3 +1,5 @@ +<%= content_for :page_title, t(".title") %> + <%= settings_section title: t(".title") do %>
diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index 6acbcf0bb..8a3baa6c7 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -125,9 +125,9 @@ end %> <% end %> <%# SHARED - Main content %> - <%= tag.main class: class_names("grow overflow-y-auto px-3 lg:px-10 py-4 w-full mx-auto max-w-5xl"), data: { app_layout_target: "content" } do %> + <%= tag.main class: class_names("grow overflow-y-auto px-3 lg:px-10 pt-0 pb-4 w-full mx-auto max-w-5xl"), data: { app_layout_target: "content" } do %> <% unless intro_mode %> -