From 76ec90799352603406728cb51b4e70913413f2bd Mon Sep 17 00:00:00 2001 From: Eugen Rochko Date: Tue, 13 Dec 2016 13:42:10 +0100 Subject: Improved admin UI --- app/controllers/admin/accounts_controller.rb | 2 +- app/controllers/admin/domain_blocks_controller.rb | 14 ++++++++++++++ app/controllers/admin/pubsubhubbub_controller.rb | 2 +- 3 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 app/controllers/admin/domain_blocks_controller.rb (limited to 'app/controllers') diff --git a/app/controllers/admin/accounts_controller.rb b/app/controllers/admin/accounts_controller.rb index 55436d253..95107b3dc 100644 --- a/app/controllers/admin/accounts_controller.rb +++ b/app/controllers/admin/accounts_controller.rb @@ -4,7 +4,7 @@ class Admin::AccountsController < ApplicationController before_action :require_admin! before_action :set_account, except: :index - layout 'public' + layout 'admin' def index @accounts = Account.alphabetic.paginate(page: params[:page], per_page: 40) diff --git a/app/controllers/admin/domain_blocks_controller.rb b/app/controllers/admin/domain_blocks_controller.rb new file mode 100644 index 000000000..e362957e7 --- /dev/null +++ b/app/controllers/admin/domain_blocks_controller.rb @@ -0,0 +1,14 @@ +# frozen_string_literal: true + +class Admin::DomainBlocksController < ApplicationController + before_action :require_admin! + + layout 'admin' + + def index + @blocks = DomainBlock.paginate(page: params[:page], per_page: 40) + end + + def create + end +end diff --git a/app/controllers/admin/pubsubhubbub_controller.rb b/app/controllers/admin/pubsubhubbub_controller.rb index 7e6bc75ea..b9e840ffe 100644 --- a/app/controllers/admin/pubsubhubbub_controller.rb +++ b/app/controllers/admin/pubsubhubbub_controller.rb @@ -3,7 +3,7 @@ class Admin::PubsubhubbubController < ApplicationController before_action :require_admin! - layout 'public' + layout 'admin' def index @subscriptions = Subscription.order('id desc').includes(:account).paginate(page: params[:page], per_page: 40) -- cgit