Files
eminuxCRM/app/views/dashboard/_attention_list.html.erb
T
eminuxandCursor c4e5f289cf
CI / scan_ruby (push) Failing after 11m20s
CI / scan_js (push) Successful in 10m35s
CI / lint (push) Has been cancelled
Commit iniziale di eminuxCRM: CRM Rails con pipeline, campagne email e Docker.
Include autenticazione, progetti isolati, mail marketing HTML con SMTP, test A/B e editor WYSIWYG.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-17 23:01:48 +02:00

21 lines
669 B
ERB

<% items = items.to_a %>
<% empty_class = "mt-2 text-sm text-amber-900/75 dark:text-amber-100/75" %>
<% if items.blank? %>
<p class="<%= empty_class %>"><%= empty %></p>
<% else %>
<ul class="mt-2 space-y-1 text-sm">
<% items.first(8).each do |item| %>
<li>
<% if block_given? %>
<%= yield item %>
<% else %>
<%= link_to "#{item.organization.name} · #{item.name}", item.organization, class: "hover:underline" %>
<% end %>
</li>
<% end %>
<% if items.size > 8 %>
<li class="text-xs text-amber-900/70 dark:text-amber-100/70">+ altre <%= items.size - 8 %></li>
<% end %>
</ul>
<% end %>