2025-04-18 18:53:10 +05:30
|
|
|
<div class="pt-safe space-y-4">
|
2025-02-25 17:28:40 -05:00
|
|
|
<div class="flex items-center gap-2 p-1.5">
|
2025-02-13 11:31:07 -05:00
|
|
|
<%= link_to previous_path, class: "flex items-center gap-1 text-primary font-medium text-sm" do %>
|
|
|
|
<%= lucide_icon "chevron-left", class: "w-5 h-5 text-secondary" %>
|
2025-04-18 18:53:10 +05:30
|
|
|
<span class="hidden md:block">Back</span>
|
2024-09-20 15:56:21 -04:00
|
|
|
<% end %>
|
2025-04-18 18:53:10 +05:30
|
|
|
<%= link_to previous_path, class: "hidden md:block uppercase bg-gray-100 rounded-sm px-1 py-0.5 text-xs text-secondary shadow-sm ml-1 pointer-events-none", data: { controller: "hotkey", hotkey: "Escape" } do %>
|
2024-09-20 15:56:21 -04:00
|
|
|
esc
|
2024-10-01 02:58:15 +05:30
|
|
|
<% end %>
|
2024-09-20 15:56:21 -04:00
|
|
|
</div>
|
2025-04-18 18:53:10 +05:30
|
|
|
<nav class="space-y-4 hidden md:block">
|
2024-09-20 15:56:21 -04:00
|
|
|
<section class="space-y-2">
|
|
|
|
<div class="flex items-center gap-2 px-3">
|
2025-02-13 11:31:07 -05:00
|
|
|
<h3 class="uppercase text-secondary font-medium text-xs"><%= t(".general_section_title") %></h3>
|
2024-09-20 15:56:21 -04:00
|
|
|
<div class="h-px bg-alpha-black-100 w-full"></div>
|
|
|
|
</div>
|
|
|
|
<ul class="space-y-1">
|
|
|
|
<li>
|
2025-02-21 11:57:59 -05:00
|
|
|
<%= render "settings/settings_nav_item", name: t(".profile_label"), path: settings_profile_path, icon: "circle-user" %>
|
2024-09-20 15:56:21 -04:00
|
|
|
</li>
|
2025-02-21 11:57:59 -05:00
|
|
|
|
2024-09-20 15:56:21 -04:00
|
|
|
<li>
|
2025-02-21 11:57:59 -05:00
|
|
|
<%= render "settings/settings_nav_item", name: t(".preferences_label"), path: settings_preferences_path, icon: "bolt" %>
|
2024-09-20 15:56:21 -04:00
|
|
|
</li>
|
2025-02-21 11:57:59 -05:00
|
|
|
|
2025-02-06 14:16:53 -06:00
|
|
|
<li>
|
2025-02-21 11:57:59 -05:00
|
|
|
<%= render "settings/settings_nav_item", name: t(".security_label"), path: settings_security_path, icon: "shield-check" %>
|
2025-02-06 14:16:53 -06:00
|
|
|
</li>
|
2025-02-21 11:57:59 -05:00
|
|
|
|
2024-09-20 15:56:21 -04:00
|
|
|
<% if self_hosted? %>
|
|
|
|
<li>
|
2025-02-21 11:57:59 -05:00
|
|
|
<%= render "settings/settings_nav_item", name: t(".self_hosting_label"), path: settings_hosting_path, icon: "database" %>
|
2024-09-20 15:56:21 -04:00
|
|
|
</li>
|
|
|
|
<% end %>
|
2025-02-28 15:35:00 +01:00
|
|
|
<% unless self_hosted? %>
|
|
|
|
<li>
|
|
|
|
<%= render "settings/settings_nav_item", name: t(".billing_label"), path: settings_billing_path, icon: "circle-dollar-sign" %>
|
|
|
|
</li>
|
|
|
|
<% end %>
|
2025-02-21 11:57:59 -05:00
|
|
|
|
2024-09-20 15:56:21 -04:00
|
|
|
<li>
|
2025-02-21 11:57:59 -05:00
|
|
|
<%= render "settings/settings_nav_item", name: t(".accounts_label"), path: accounts_path, icon: "layers" %>
|
2024-09-20 15:56:21 -04:00
|
|
|
</li>
|
2024-10-01 10:47:59 -04:00
|
|
|
|
|
|
|
<li>
|
2025-02-21 11:57:59 -05:00
|
|
|
<%= render "settings/settings_nav_item", name: t(".imports_label"), path: imports_path, icon: "download" %>
|
2024-10-01 10:47:59 -04:00
|
|
|
</li>
|
2024-09-20 15:56:21 -04:00
|
|
|
</ul>
|
|
|
|
</section>
|
|
|
|
|
|
|
|
<section class="space-y-2">
|
|
|
|
<div class="flex items-center gap-2 px-3">
|
2025-02-13 11:31:07 -05:00
|
|
|
<h3 class="uppercase text-secondary font-medium text-xs"><%= t(".transactions_section_title") %></h3>
|
2024-09-20 15:56:21 -04:00
|
|
|
<div class="h-px bg-alpha-black-100 w-full"></div>
|
|
|
|
</div>
|
|
|
|
<ul class="space-y-1">
|
|
|
|
<li>
|
2025-02-21 11:57:59 -05:00
|
|
|
<%= render "settings/settings_nav_item", name: t(".tags_label"), path: tags_path, icon: "tags" %>
|
2024-09-20 15:56:21 -04:00
|
|
|
</li>
|
2024-04-25 16:31:12 -04:00
|
|
|
<li>
|
2025-02-21 11:57:59 -05:00
|
|
|
<%= render "settings/settings_nav_item", name: t(".categories_label"), path: categories_path, icon: "shapes" %>
|
2024-04-25 16:31:12 -04:00
|
|
|
</li>
|
2024-09-20 15:56:21 -04:00
|
|
|
<li>
|
2025-02-21 11:57:59 -05:00
|
|
|
<%= render "settings/settings_nav_item", name: t(".merchants_label"), path: merchants_path, icon: "store" %>
|
2024-09-20 15:56:21 -04:00
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</section>
|
|
|
|
|
|
|
|
<section class="space-y-2">
|
|
|
|
<div class="flex items-center gap-2 px-3">
|
2025-02-13 11:31:07 -05:00
|
|
|
<h3 class="uppercase text-secondary font-medium text-xs"><%= t(".other_section_title") %></h3>
|
2024-09-20 15:56:21 -04:00
|
|
|
<div class="h-px bg-alpha-black-100 w-full"></div>
|
|
|
|
</div>
|
|
|
|
<ul class="space-y-1">
|
|
|
|
<li>
|
2025-02-21 11:57:59 -05:00
|
|
|
<%= render "settings/settings_nav_item", name: t(".whats_new_label"), path: changelog_path, icon: "box" %>
|
|
|
|
<%= render "settings/settings_nav_item", name: t(".feedback_label"), path: feedback_path, icon: "megaphone" %>
|
2024-09-20 15:56:21 -04:00
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</section>
|
|
|
|
|
|
|
|
<section>
|
2025-02-21 11:57:59 -05:00
|
|
|
<%= button_to session_path(Current.session), method: :delete, class: "flex items-center gap-2 btn btn--ghost text-destructive w-full" do %>
|
2024-09-20 15:56:21 -04:00
|
|
|
<%= lucide_icon("log-out", class: "w-5 h-5 shrink-0") %>
|
|
|
|
<span><%= t(".logout") %></span>
|
2024-04-25 16:31:12 -04:00
|
|
|
<% end %>
|
2024-09-20 15:56:21 -04:00
|
|
|
</section>
|
|
|
|
</nav>
|
2025-04-18 18:53:10 +05:30
|
|
|
<nav class="space-y-4 overflow-y-auto md:hidden" id="mobile-settings-nav" data-preserve-scroll data-controller="preserve-scroll">
|
|
|
|
|
|
|
|
<ul class="flex space-y-1">
|
|
|
|
|
|
|
|
<li>
|
|
|
|
<%= render "settings/settings_nav_item", name: t(".profile_label"), path: settings_profile_path, icon: "circle-user" %>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li>
|
|
|
|
<%= render "settings/settings_nav_item", name: t(".preferences_label"), path: settings_preferences_path, icon: "bolt" %>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li>
|
|
|
|
<%= render "settings/settings_nav_item", name: t(".security_label"), path: settings_security_path, icon: "shield-check" %>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<% if self_hosted? %>
|
|
|
|
<li>
|
|
|
|
<%= render "settings/settings_nav_item", name: t(".self_hosting_label"), path: settings_hosting_path, icon: "database" %>
|
|
|
|
</li>
|
|
|
|
<% end %>
|
|
|
|
<% unless self_hosted? %>
|
|
|
|
<li>
|
|
|
|
<%= render "settings/settings_nav_item", name: t(".billing_label"), path: settings_billing_path, icon: "circle-dollar-sign" %>
|
|
|
|
</li>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
<li>
|
|
|
|
<%= render "settings/settings_nav_item", name: t(".accounts_label"), path: accounts_path, icon: "layers" %>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li>
|
|
|
|
<%= render "settings/settings_nav_item", name: t(".imports_label"), path: imports_path, icon: "download" %>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
<li>
|
|
|
|
<%= render "settings/settings_nav_item", name: t(".tags_label"), path: tags_path, icon: "tags" %>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<%= render "settings/settings_nav_item", name: t(".categories_label"), path: categories_path, icon: "shapes" %>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<%= render "settings/settings_nav_item", name: t(".merchants_label"), path: merchants_path, icon: "store" %>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<li>
|
|
|
|
<%= render "settings/settings_nav_item", name: t(".whats_new_label"), path: changelog_path, icon: "box" %>
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<%= render "settings/settings_nav_item", name: t(".feedback_label"), path: feedback_path, icon: "megaphone" %>
|
|
|
|
</li>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
<%= button_to session_path(Current.session), method: :delete, class: "flex items-center gap-2 btn btn--ghost text-destructive w-full" do %>
|
|
|
|
<%= lucide_icon("log-out", class: "w-5 h-5 shrink-0") %>
|
|
|
|
<span><%= t(".logout") %></span>
|
|
|
|
<% end %>
|
|
|
|
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
|
|
|
|
</nav>
|
2024-09-20 15:56:21 -04:00
|
|
|
</div>
|