Various fixes and improvements (#12878)
* Fix unused role routes being generated * Remove unused JavaScript code * Refactor filters code to be DRYer * Fix `.count == 0` comparisons to `.empty?` in views * Fix filters in views
This commit is contained in:
		@@ -4,7 +4,7 @@
 | 
			
		||||
- content_for :heading_actions do
 | 
			
		||||
  = link_to t('admin.email_domain_blocks.add_new'), new_admin_email_domain_block_path, class: 'button'
 | 
			
		||||
 | 
			
		||||
- if @email_domain_blocks.count == 0
 | 
			
		||||
- if @email_domain_blocks.empty?
 | 
			
		||||
  %div.muted-hint.center-text=t 'admin.email_domain_blocks.empty'
 | 
			
		||||
- else
 | 
			
		||||
  .table-wrapper
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user