Fix bug.
This commit is contained in:
parent
bcc584ca17
commit
8635871c15
|
@ -31,7 +31,7 @@ class Admin::SitePanelController < OrbitAdminController
|
||||||
domain_names = domain_name.split(" ").select{|s| s.present?}
|
domain_names = domain_name.split(" ").select{|s| s.present?}
|
||||||
domain_names_count = domain_names.count
|
domain_names_count = domain_names.count
|
||||||
(0...domain_names_count).each do |i|
|
(0...domain_names_count).each do |i|
|
||||||
domain_names << domain_names[i].sub(/\w+\./,'\\*.')
|
domain_names << domain_names[i].sub(/[^\.]+\./,'\\*.')
|
||||||
end
|
end
|
||||||
if domain_names.count != 0
|
if domain_names.count != 0
|
||||||
domain_name_search_text = "(" + domain_names.join("|") + ")"
|
domain_name_search_text = "(" + domain_names.join("|") + ")"
|
||||||
|
|
|
@ -43,12 +43,14 @@
|
||||||
<th><%=t('client_management.domain_name')%></th>
|
<th><%=t('client_management.domain_name')%></th>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
<% if (site_server.has_certbot rescue false)%>
|
||||||
<tr>
|
<tr>
|
||||||
<td><%=radio_button_tag("site_cert","certbot",false)%></td>
|
<td><%=radio_button_tag("site_cert","certbot",false)%></td>
|
||||||
<td>Certbot</td>
|
<td>Certbot</td>
|
||||||
<td></td>
|
<td></td>
|
||||||
<td></td>
|
<td></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<% end %>
|
||||||
<% @site_certs.each do |site_cert| %>
|
<% @site_certs.each do |site_cert| %>
|
||||||
<tr>
|
<tr>
|
||||||
<td><%=radio_button_tag("site_cert",site_cert.id,site_cert.id == @enable_cert_id)%></td>
|
<td><%=radio_button_tag("site_cert",site_cert.id,site_cert.id == @enable_cert_id)%></td>
|
||||||
|
|
Loading…
Reference in New Issue