Show comments in the admin/instances page (#29240)
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
		
							parent
							
								
									edfc53856f
								
							
						
					
					
						commit
						deffb8ecb6
					
				| @ -324,6 +324,23 @@ $content-width: 840px; | |||||||
|       padding-bottom: 0; |       padding-bottom: 0; | ||||||
|       margin-bottom: 0; |       margin-bottom: 0; | ||||||
|       border-bottom: 0; |       border-bottom: 0; | ||||||
|  | 
 | ||||||
|  |       .comment { | ||||||
|  |         display: block; | ||||||
|  |         overflow: hidden; | ||||||
|  |         text-overflow: ellipsis; | ||||||
|  |         margin-top: 4px; | ||||||
|  | 
 | ||||||
|  |         &.private-comment { | ||||||
|  |           display: block; | ||||||
|  |           color: $darker-text-color; | ||||||
|  |         } | ||||||
|  | 
 | ||||||
|  |         &.public-comment { | ||||||
|  |           display: block; | ||||||
|  |           color: $secondary-text-color; | ||||||
|  |         } | ||||||
|  |       } | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     & > p { |     & > p { | ||||||
|  | |||||||
| @ -7,6 +7,10 @@ | |||||||
|       %small |       %small | ||||||
|         - if instance.domain_block |         - if instance.domain_block | ||||||
|           = instance.domain_block.policies.map { |policy| t(policy, scope: 'admin.instances.content_policies.policies') }.join(' · ') |           = instance.domain_block.policies.map { |policy| t(policy, scope: 'admin.instances.content_policies.policies') }.join(' · ') | ||||||
|  |           - if instance.domain_block.public_comment.present? | ||||||
|  |             %span.comment.public-comment #{t('admin.domain_blocks.public_comment')}: #{instance.domain_block.public_comment} | ||||||
|  |           - if instance.domain_block.private_comment.present? | ||||||
|  |             %span.comment.private-comment #{t('admin.domain_blocks.private_comment')}: #{instance.domain_block.private_comment} | ||||||
|         - elsif instance.domain_allow |         - elsif instance.domain_allow | ||||||
|           = t('admin.accounts.whitelisted') |           = t('admin.accounts.whitelisted') | ||||||
|         - else |         - else | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user