23 lines
413 B
Ruby
23 lines
413 B
Ruby
class AdminController < ApplicationController
|
|
before_action :authenticate_user!
|
|
|
|
def status
|
|
end
|
|
|
|
def screenshots
|
|
end
|
|
|
|
def integration
|
|
end
|
|
|
|
def logs
|
|
logs = Log
|
|
|
|
if params[:search].present?
|
|
logger.debug "Searching for #{params[:search]}"
|
|
logs = logs.where("message ilike ?", "%#{params[:search]}%")
|
|
end
|
|
|
|
@logs = logs.paginate(page: params[:page], per_page: 20)
|
|
end
|
|
end
|