Skip to content

Open-source live-chat, email support, omni-channel desk. An alternative to Intercom, Zendesk, Salesforce Service Cloud etc. 🔥💬

941 B
Raw Blame
<%# locals: (value:, boxed: false) -%>
<%= tag.span class: class_names("max-w-full items-center gap-1 font-mono text-xs text-n-slate-11", boxed ? "flex h-9 rounded-lg border border-n-weak bg-n-slate-2 pe-1 ps-3 dark:bg-n-solid-2" : "inline-flex"),
             data: { secret: value } do %>
  <span class="<%= boxed ? "min-w-0 flex-1 select-none truncate" : "min-w-0 break-all" %>" data-secret-text><%= "•" * (value.to_s.length.nonzero? || 10) %></span>
  <%= render "icon_button", aria: { label: t("super_admin.actions.toggle_secret") }, data: { secret_toggle: true } do %>
    <span class="i-lucide-eye size-4"></span>
    <span class="i-lucide-eye-off hidden size-4"></span>
  <% end %>
  <%= render "icon_button", aria: { label: t("super_admin.actions.copy") }, data: { secret_copy: true } do %>
    <span class="i-lucide-copy size-4"></span>
    <span class="i-lucide-check hidden size-4 text-n-teal-10"></span>
  <% end %>
<% end %>