Add Account#unavailable? and Account#permanently_unavailable? aliases (#28053)
				
					
				
			This commit is contained in:
		@@ -1,4 +1,4 @@
 | 
			
		||||
.batch-table__row{ class: [!account.suspended? && account.user_pending? && 'batch-table__row--attention', (account.suspended? || account.user_unconfirmed?) && 'batch-table__row--muted'] }
 | 
			
		||||
.batch-table__row{ class: [!account.unavailable? && account.user_pending? && 'batch-table__row--attention', (account.unavailable? || account.user_unconfirmed?) && 'batch-table__row--muted'] }
 | 
			
		||||
  %label.batch-table__row__select.batch-table__row__select--aligned.batch-checkbox
 | 
			
		||||
    = f.check_box :account_ids, { multiple: true, include_hidden: false }, account.id
 | 
			
		||||
  .batch-table__row__content.batch-table__row__content--unpadded
 | 
			
		||||
@@ -8,13 +8,13 @@
 | 
			
		||||
          %td
 | 
			
		||||
            = account_link_to account, path: admin_account_path(account.id)
 | 
			
		||||
          %td.accounts-table__count.optional
 | 
			
		||||
            - if account.suspended? || account.user_pending?
 | 
			
		||||
            - if account.unavailable? || account.user_pending?
 | 
			
		||||
              \-
 | 
			
		||||
            - else
 | 
			
		||||
              = friendly_number_to_human account.statuses_count
 | 
			
		||||
            %small= t('accounts.posts', count: account.statuses_count).downcase
 | 
			
		||||
          %td.accounts-table__count.optional
 | 
			
		||||
            - if account.suspended? || account.user_pending?
 | 
			
		||||
            - if account.unavailable? || account.user_pending?
 | 
			
		||||
              \-
 | 
			
		||||
            - else
 | 
			
		||||
              = friendly_number_to_human account.followers_count
 | 
			
		||||
@@ -30,6 +30,6 @@
 | 
			
		||||
                \-
 | 
			
		||||
              %br/
 | 
			
		||||
              %samp.ellipsized-ip= relevant_account_ip(account, params[:ip])
 | 
			
		||||
    - if !account.suspended? && account.user_pending? && account.user&.invite_request&.text.present?
 | 
			
		||||
    - if !account.unavailable? && account.user_pending? && account.user&.invite_request&.text.present?
 | 
			
		||||
      .batch-table__row__content__quote
 | 
			
		||||
        %p= account.user&.invite_request&.text
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user