% if @newly_created && @plain_key %> <%= content_for :page_title, t(".newly_created.page_title") %>
<%= t(".newly_created.key_ready", name: @current_api_key.name) %>
<%= t(".newly_created.copy_store_securely") %>
<%= @current_api_key.plain_key %>
<%= render DS::Button.new(
text: t(".newly_created.copy_api_key"),
variant: "ghost",
icon: "copy",
data: { action: "clipboard#copy" }
) %>
<%= t(".current_api_key.usage_instructions", product_name: product_name) %>
<%= @current_api_key.name %>
<%= t(".current_api_key.created_ago", time: time_ago_in_words(@current_api_key.created_at)) %> <% if @current_api_key.last_used_at %> • <%= t(".current_api_key.last_used_ago", time: time_ago_in_words(@current_api_key.last_used_at)) %> <% else %> • <%= t(".current_api_key.never_used") %> <% end %>
<%= t(".current_api_key.active") %>
<%= t(".current_api_key.copy_store_securely") %>
<%= @current_api_key.plain_key %>
<%= render DS::Button.new(
text: t(".current_api_key.copy_api_key"),
variant: "ghost",
icon: "copy",
data: { action: "clipboard#copy" }
) %>
<%= t(".current_api_key.usage_instructions", product_name: product_name) %>
<%= t(".no_api_key.description") %>
<%= t(".no_api_key.security_note") %>