Refactor toggles to work without JS, add specs

This commit is contained in:
Râu Cao
2023-03-15 14:04:12 +07:00
committed by Gitea
parent ca1221e9f3
commit fa56d6b772
12 changed files with 86 additions and 50 deletions

View File

@@ -7,11 +7,11 @@
title: "Enable Gitea integration",
description: "Gitea configuration present and features enabled"
) %>
</ul>
<% if Setting.gitea_enabled? %>
<%= render FormElements::FieldsetComponent.new(title: "Public URL") do %>
<%= f.text_field :gitea_public_url,
value: Setting.gitea_public_url,
class: "w-full", disabled: true %>
<% if Setting.gitea_enabled? %>
<%= render FormElements::FieldsetComponent.new(title: "Public URL") do %>
<%= f.text_field :gitea_public_url,
value: Setting.gitea_public_url,
class: "w-full", disabled: true %>
<% end %>
<% end %>
<% end %>
</ul>