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 = 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("|") + ")"

View File

@ -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>