This commit is contained in:
BoHung Chiu 2021-12-22 15:42:06 +08:00
parent bcc584ca17
commit 8635871c15
2 changed files with 3 additions and 1 deletions

View File

@ -31,7 +31,7 @@ class Admin::SitePanelController < OrbitAdminController
domain_names = domain_name.split(" ").select{|s| s.present?}
domain_names_count = domain_names.count
(0...domain_names_count).each do |i|
domain_names << domain_names[i].sub(/\w+\./,'\\*.')
domain_names << domain_names[i].sub(/[^\.]+\./,'\\*.')
end
if domain_names.count != 0
domain_name_search_text = "(" + domain_names.join("|") + ")"

View File

@ -43,12 +43,14 @@
<th><%=t('client_management.domain_name')%></th>
</thead>
<tbody>
<% if (site_server.has_certbot rescue false)%>
<tr>
<td><%=radio_button_tag("site_cert","certbot",false)%></td>
<td>Certbot</td>
<td></td>
<td></td>
</tr>
<% end %>
<% @site_certs.each do |site_cert| %>
<tr>
<td><%=radio_button_tag("site_cert",site_cert.id,site_cert.id == @enable_cert_id)%></td>