Improved admin UI
This commit is contained in:
		
							parent
							
								
									668013265c
								
							
						
					
					
						commit
						76ec907993
					
				
					 23 changed files with 259 additions and 49 deletions
				
			
		|  | @ -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) | ||||
|  |  | |||
							
								
								
									
										14
									
								
								app/controllers/admin/domain_blocks_controller.rb
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								app/controllers/admin/domain_blocks_controller.rb
									
										
									
									
									
										Normal file
									
								
							|  | @ -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 | ||||
|  | @ -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) | ||||
|  |  | |||
		Reference in a new issue