mirror of
https://github.com/we-promise/sure.git
synced 2026-04-17 11:04:14 +00:00
* [claudesquad] update from 'component-namespacing' on 18 Jul 25 07:23 EDT * [claudesquad] update from 'component-namespacing' on 18 Jul 25 07:30 EDT * Update stimulus controller references to use namespace * Fix remaining tests
26 lines
817 B
Plaintext
26 lines
817 B
Plaintext
<div class="flex items-center justify-between">
|
|
<h1 class="text-xl font-medium text-primary"><%= t(".title") %></h1>
|
|
|
|
<%= render DS::Link.new(
|
|
text: "New import",
|
|
href: new_import_path,
|
|
icon: "plus",
|
|
variant: "primary",
|
|
frame: :modal
|
|
) %>
|
|
</div>
|
|
|
|
<div class="bg-container shadow-border-xs rounded-xl p-4">
|
|
<% if @imports.empty? %>
|
|
<%= render partial: "imports/empty" %>
|
|
<% else %>
|
|
<div class="rounded-xl bg-container-inset p-1">
|
|
<h2 class="uppercase px-4 py-2 text-secondary text-xs"><%= t(".imports") %> · <%= @imports.size %></h2>
|
|
|
|
<div class="border border-alpha-black-100 rounded-lg bg-container shadow-xs">
|
|
<%= render partial: "imports/import", collection: @imports.ordered, spacer_template: "shared/ruler" %>
|
|
</div>
|
|
</div>
|
|
<% end %>
|
|
</div>
|