Files
fizzy/app/views/users/credentials/index.html.erb
T
2026-03-18 11:49:23 +01:00

34 lines
1.0 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<% @page_title = "Passkeys" %>
<% content_for :header do %>
<div class="header__actions header__actions--start">
<%= back_link_to "My profile", user_path(@user), "keydown.left@document->hotkey#click keydown.esc@document->hotkey#click" %>
</div>
<h1 class="header__title" data-bridge--title-target="header"><%= @page_title %></h1>
<% end %>
<section class="panel panel--wide shadow center txt-align-start">
<p class="margin-none-block-start">Passkeys let you sign in using your devices biometrics, PIN, or security key&mdash;no email code needed.</p>
<% if @credentials.any? %>
<table class="access-tokens">
<thead>
<tr>
<th>Passkey</th>
<th>Created</th>
<th></th>
</tr>
</thead>
<tbody>
<%= render partial: "users/credentials/credential", collection: @credentials %>
</tbody>
</table>
<% end %>
<%= link_to new_user_credential_path(@user), class: "btn btn--link" do %>
<%= icon_tag "add" %>
<span>Add a passkey</span>
<% end %>
</section>