From 04d3ac50b21c811ef9dc41f079af64480380e164 Mon Sep 17 00:00:00 2001 From: Jason Zimdars Date: Wed, 10 Dec 2025 16:46:58 -0600 Subject: [PATCH] Clean-up post merge and rework layout to accomodate API and Appearance blocks --- app/views/users/_access_tokens.html.erb | 4 ++++ app/views/users/_transfer.html.erb | 7 +------ app/views/users/show.html.erb | 28 ++++++++----------------- 3 files changed, 14 insertions(+), 25 deletions(-) create mode 100644 app/views/users/_access_tokens.html.erb diff --git a/app/views/users/_access_tokens.html.erb b/app/views/users/_access_tokens.html.erb new file mode 100644 index 000000000..285f87149 --- /dev/null +++ b/app/views/users/_access_tokens.html.erb @@ -0,0 +1,4 @@ +
+

Developer

+

Manage <%= link_to "personal access tokens", my_access_tokens_path, class: "btn btn--plain txt-link" %> used with the Fizzy developer API.

+
\ No newline at end of file diff --git a/app/views/users/_transfer.html.erb b/app/views/users/_transfer.html.erb index 533693ea8..13f895ebc 100644 --- a/app/views/users/_transfer.html.erb +++ b/app/views/users/_transfer.html.erb @@ -1,15 +1,10 @@
<% url = session_transfer_url(user.identity.transfer_id, script_name: nil) %> -
-

Link a device

-

Use this link to sign-in on another device

-
-
<% end %> + + <% if Current.user == @user %> + + + <%= button_to session_url(script_name: nil), method: :delete, class: "btn txt-x-small center", data: { turbo: false } do %> + Sign out of Fizzy on this device + <% end %> + <% end %> @@ -44,25 +52,7 @@
<%= render "users/theme" %> <%= render "users/transfer", user: @user %> - - - - <%= button_to session_url(script_name: nil), method: :delete, class: "btn txt-x-small center", data: { turbo: false } do %> - Sign out of Fizzy on this device -
-
-

API

-
- -
- <%= link_to "Personal access tokens", my_access_tokens_path, class: "btn" %> -
-
- -
- <%= button_to session_url(script_name: nil), method: :delete, class: "btn btn--plain txt-link txt-small", data: { turbo: false } do %> - Sign out of Fizzy - <% end %> + <%= render "users/access_tokens" %>
<% end %>