mirror of
https://github.com/SrIzan10/hc-harbor.git
synced 2026-05-01 10:45:21 +00:00
allow github relinking even with valid access token
This commit is contained in:
@@ -168,10 +168,7 @@
|
||||
<span class="text-green-400">✅</span>
|
||||
<span class="text-gray-200 text-sm">Connected: <%= link_to "@#{h(@user.github_username)}", "https://github.com/#{h(@user.github_username)}", target: "_blank", class: "text-primary hover:text-primary/80 underline" %></span>
|
||||
</div>
|
||||
<% unless @user.github_access_token.present? %>
|
||||
<%= link_to "Relink GitHub Account", github_auth_path, data: { turbo: "false" },
|
||||
class: "inline-flex items-center gap-2 px-3 py-2 bg-primary text-white text-sm font-medium rounded transition-colors duration-200" %>
|
||||
<% end %>
|
||||
<%= link_to "Relink GitHub Account", github_auth_path, data: { turbo: "false" }, class: "inline-flex items-center gap-2 px-3 py-2 bg-primary text-white text-sm font-medium rounded transition-colors duration-200" %>
|
||||
<% else %>
|
||||
<%= link_to "Link GitHub Account", github_auth_path, data: { turbo: "false" },
|
||||
class: "inline-flex items-center gap-2 px-4 py-2 bg-primary text-white font-medium rounded transition-colors duration-200" %>
|
||||
|
||||
Reference in New Issue
Block a user