34 lines
1.0 KiB
Plaintext
34 lines
1.0 KiB
Plaintext
<% @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 device’s biometrics, PIN, or security key—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>
|