|
|
@ -396,7 +396,7 @@ class ManagementsController < ApplicationController
|
|
|
|
# 搜索镜像
|
|
|
|
# 搜索镜像
|
|
|
|
def mirror_search
|
|
|
|
def mirror_search
|
|
|
|
@scope = []
|
|
|
|
@scope = []
|
|
|
|
if params[:q] && params[:q].lstrip.rstrip != ""
|
|
|
|
if params[:q] && params[:q].strip != ""
|
|
|
|
@scope = MirrorRepository.where("name like ?", "%#{params[:q]}%").map(&:name)
|
|
|
|
@scope = MirrorRepository.where("name like ?", "%#{params[:q]}%").map(&:name)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
respond_to do |format|
|
|
|
|
respond_to do |format|
|
|
|
|