%# locals: (wise_item:) %> <%= tag.div id: dom_id(wise_item) do %> <%= render DS::Disclosure.new(variant: :card, open: true) do |disclosure| %> <% disclosure.with_summary_content do %>
WI
<% if wise_item.last_synced_at %> <%= t(".status_with_summary", timestamp: time_ago_in_words(wise_item.last_synced_at), summary: wise_item.sync_status_summary) %> <% else %> <%= t(".status_never") %> <% end %>
<% end %><%= t(".setup_needed") %>
<%= t(".setup_description", linked: linked, total: total) %>
<%= render DS::Link.new( text: t(".setup_action"), icon: "settings", variant: "primary", href: setup_accounts_wise_item_path(wise_item), frame: :modal ) %><%= t(".no_accounts_title") %>
<%= t(".no_accounts_description") %>
<%= render DS::Link.new( text: t(".setup_action"), icon: "settings", variant: "primary", href: setup_accounts_wise_item_path(wise_item), frame: :modal ) %>