mirror of
https://github.com/internetee/registry.git
synced 2025-07-25 12:08:27 +02:00
Merge remote-tracking branch 'origin/master' into repp-domains
This commit is contained in:
commit
9305602c5f
34 changed files with 1133 additions and 54 deletions
|
@ -27,8 +27,17 @@ module Admin
|
|||
params[:q][:name_matches] = n_cache # we don't want to show wildcards in search form
|
||||
end
|
||||
end
|
||||
|
||||
@domains = @domains.per(params[:results_per_page]) if params[:results_per_page].to_i.positive?
|
||||
|
||||
respond_to do |format|
|
||||
format.html do
|
||||
@domains
|
||||
end
|
||||
format.csv do
|
||||
raw_csv = @domains.to_csv
|
||||
send_data raw_csv, filename: 'domains.csv', type: "#{Mime[:csv]}; charset=utf-8"
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
def show
|
||||
|
|
|
@ -22,7 +22,7 @@ module Repp
|
|||
desc 'Get a specific poll message'
|
||||
def show
|
||||
@notification = current_user.registrar.notifications.find(params[:id])
|
||||
data = @notification.as_json(only: %i[id text attached_obj_id attached_obj_type])
|
||||
data = @notification.as_json(only: %i[id text attached_obj_id attached_obj_type read])
|
||||
|
||||
render_success(data: data)
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue