adjust settings nav links

This commit is contained in:
Pete Matsyburka committed 2025-09-01 18:34:23 +03:00
1 parent f6850b5427
commit 7357fa4871
2 files changed
+4 -2

No files matched your search

+1 -1
View File
@@ -4,7 +4,7 @@
<div class="flex flex-col gap-2 md:flex-row md:justify-between md:items-center mb-4">
<h1 class="text-4xl font-bold">Webhook</h1>
<div class="flex flex-col gap-2 md:flex-row md:justify-between md:items-center">
<% if params[:action] == 'index' %>
<% if params[:action] == 'index' && (current_user == true_user || current_account.testing?) %>
<%= render 'shared/test_mode_toggle' %>
<% end %>
<% if @webhook_url.persisted? && params[:action] == 'index' %>