mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-18 20:59:39 +02:00
* WIP * WIP * WIP * WIP * WIP * WIP * WIP * format * WIP * WIP * WIP * WIP * WIP * WIP * WIP * WIP * WIP * WIP * WIP * WIP * WIP * WIP * WIP * WIP * WIP * WIP * WIP * WIP * WIP * WIP * WIP * WIP * WIP * WIP * WIP * WIP * WIP * WIP * WIP * WIP * WIP * fix conflict * fix conflict * chore: run rubocop * fix test * update PWA logo * fix tests * chore: lint * fix test * Refactor: Remove duplicate data attribute in activity partial and add chat form rendering in chats index --------- Co-authored-by: Josh Pigford <josh@joshpigford.com>
158 lines
6 KiB
Text
158 lines
6 KiB
Text
<div class="pt-safe space-y-4">
|
|
<div class="flex items-center gap-2 p-1.5">
|
|
<%= 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" %>
|
|
<span class="hidden md:block">Back</span>
|
|
<% end %>
|
|
<%= 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 %>
|
|
esc
|
|
<% end %>
|
|
</div>
|
|
<nav class="space-y-4 hidden md:block">
|
|
<section class="space-y-2">
|
|
<div class="flex items-center gap-2 px-3">
|
|
<h3 class="uppercase text-secondary font-medium text-xs"><%= t(".general_section_title") %></h3>
|
|
<div class="h-px bg-alpha-black-100 w-full"></div>
|
|
</div>
|
|
<ul class="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>
|
|
</ul>
|
|
</section>
|
|
|
|
<section class="space-y-2">
|
|
<div class="flex items-center gap-2 px-3">
|
|
<h3 class="uppercase text-secondary font-medium text-xs"><%= t(".transactions_section_title") %></h3>
|
|
<div class="h-px bg-alpha-black-100 w-full"></div>
|
|
</div>
|
|
<ul class="space-y-1">
|
|
<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>
|
|
</ul>
|
|
</section>
|
|
|
|
<section class="space-y-2">
|
|
<div class="flex items-center gap-2 px-3">
|
|
<h3 class="uppercase text-secondary font-medium text-xs"><%= t(".other_section_title") %></h3>
|
|
<div class="h-px bg-alpha-black-100 w-full"></div>
|
|
</div>
|
|
<ul class="space-y-1">
|
|
<li>
|
|
<%= 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" %>
|
|
</li>
|
|
</ul>
|
|
</section>
|
|
|
|
<section>
|
|
<%= 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 %>
|
|
</section>
|
|
</nav>
|
|
<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>
|
|
</div>
|