mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 17:59:47 +02:00
Merge branch '108869472-objects_archive' into staging
This commit is contained in:
commit
c47613865a
3 changed files with 4 additions and 7 deletions
|
@ -49,7 +49,7 @@ class Admin::ContactVersionsController < AdminController
|
||||||
end
|
end
|
||||||
|
|
||||||
def create_where_string(key, value)
|
def create_where_string(key, value)
|
||||||
" AND object->>'#{key}' LIKE '%#{value}%'"
|
" AND object->>'#{key}' ILIKE '%#{value}%'"
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
|
@ -9,12 +9,12 @@ class Admin::DomainVersionsController < AdminController
|
||||||
search_params = params[:q].deep_dup
|
search_params = params[:q].deep_dup
|
||||||
|
|
||||||
if search_params[:registrant].present?
|
if search_params[:registrant].present?
|
||||||
registrants = Contact.where("name like ?", "%#{search_params[:registrant].strip}%")
|
registrants = Contact.where("name ilike ?", "%#{search_params[:registrant].strip}%")
|
||||||
search_params.delete(:registrant)
|
search_params.delete(:registrant)
|
||||||
end
|
end
|
||||||
|
|
||||||
if search_params[:registrar].present?
|
if search_params[:registrar].present?
|
||||||
registrars = Registrar.where("name like ?", "%#{search_params[:registrar].strip}%")
|
registrars = Registrar.where("name ilike ?", "%#{search_params[:registrar].strip}%")
|
||||||
search_params.delete(:registrar)
|
search_params.delete(:registrar)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -63,7 +63,7 @@ class Admin::DomainVersionsController < AdminController
|
||||||
end
|
end
|
||||||
|
|
||||||
def create_where_string(key, value)
|
def create_where_string(key, value)
|
||||||
" AND object->>'#{key}' ~ '#{value}'"
|
" AND object->>'#{key}' ~* '#{value}'"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -25,9 +25,6 @@
|
||||||
%dl.dl-horizontal
|
%dl.dl-horizontal
|
||||||
%dt= t(:name)
|
%dt= t(:name)
|
||||||
%dd= link_to(domain.name, admin_domain_path(@version.item_id))
|
%dd= link_to(domain.name, admin_domain_path(@version.item_id))
|
||||||
%dt= t(:registered_at)
|
|
||||||
%dd
|
|
||||||
= l(domain.registered_at, format: :short)
|
|
||||||
|
|
||||||
%dt= t(:created)
|
%dt= t(:created)
|
||||||
%dd
|
%dd
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue