mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-06 05:55:21 +02:00
31 lines
1.2 KiB
Text
31 lines
1.2 KiB
Text
|
<% content_for :sidebar do %>
|
||
|
<%= render "settings/nav" %>
|
||
|
<% end %>
|
||
|
|
||
|
<div class="space-y-4">
|
||
|
<div class="flex items-center justify-between">
|
||
|
<h1 class="text-xl font-medium text-gray-900"><%= t(".title") %></h1>
|
||
|
<%= link_to new_import_path(enable_type_selector: true), class: "flex text-white text-sm font-medium items-center gap-1 bg-gray-900 rounded-lg p-2 pr-3", data: { turbo_frame: "modal" } do %>
|
||
|
<%= lucide_icon("plus", class: "w-5 h-5") %>
|
||
|
<span><%= t(".new") %></span>
|
||
|
<% end %>
|
||
|
</div>
|
||
|
<div class="bg-white shadow-xs border border-alpha-black-25 rounded-xl p-4">
|
||
|
<% if @imports.empty? %>
|
||
|
<%= render partial: "imports/empty" %>
|
||
|
<% else %>
|
||
|
<div class="rounded-xl bg-gray-25 p-1">
|
||
|
<h2 class="uppercase px-4 py-2 text-gray-500 text-xs"><%= t(".imports") %> · <%= @imports.size %></h2>
|
||
|
|
||
|
<div class="border border-alpha-gray-100 rounded-lg bg-white shadow-xs">
|
||
|
<%= render @imports.ordered %>
|
||
|
</div>
|
||
|
</div>
|
||
|
<% end %>
|
||
|
</div>
|
||
|
<div class="flex justify-between gap-4">
|
||
|
<%= previous_setting("Rules", transaction_rules_path) %>
|
||
|
<%= next_setting("What's new", changelog_path) %>
|
||
|
</div>
|
||
|
</div>
|