Skip to content

armgit / sure

Public Imported from GitHub
0

The personal finance app for everyone (by everyone)

Ruby
494 B
Raw Blame
<%# locals: (status:) %>
<%
  tone = case status.to_s.to_sym
         when :ok  then :success
         when :warn then :warning
         when :err  then :error
         else :neutral
         end
%>
<%# Provider connection state is genuine live status — keep the indicator dot
    (badge mode is dot-less by default; this is a deliberate opt-in). %>
<%= render DS::Pill.new(
  label: t("settings.providers.status.#{status}"),
  tone: tone,
  marker: false,
  show_dot: true,
  size: :sm
) %>