2024-05-17 09:09:32 -04:00
|
|
|
<% 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>
|
2024-06-24 12:49:08 +02:00
|
|
|
|
|
|
|
<%= link_to new_import_path(enable_type_selector: true), class: "rounded-lg bg-gray-900 text-white flex items-center gap-1 justify-center hover:bg-gray-700 px-3 py-2", data: { turbo_frame: :modal } do %>
|
2024-05-17 09:09:32 -04:00
|
|
|
<%= 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">
|
2024-07-01 10:49:43 -04:00
|
|
|
<%= previous_setting("Rules", rules_transactions_path) %>
|
2024-05-17 09:09:32 -04:00
|
|
|
<%= next_setting("What's new", changelog_path) %>
|
|
|
|
</div>
|
|
|
|
</div>
|