The code powering m.abunchtell.com https://m.abunchtell.com
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

23 lines
1.1 KiB

  1. %tr
  2. %td
  3. = admin_account_link_to(account)
  4. %td
  5. %div{ style: 'margin: -2px 0' }= account_badge(account, all: true)
  6. %td
  7. - if account.user_current_sign_in_ip
  8. %samp.ellipsized-ip{ title: account.user_current_sign_in_ip }= account.user_current_sign_in_ip
  9. - else
  10. \-
  11. %td
  12. - if account.user_current_sign_in_at
  13. %time.time-ago{ datetime: account.user_current_sign_in_at.iso8601, title: l(account.user_current_sign_in_at) }= l account.user_current_sign_in_at
  14. - else
  15. \-
  16. %td
  17. - if account.local? && account.user_pending?
  18. = table_link_to 'check', t('admin.accounts.approve'), approve_admin_account_path(account.id), method: :post, data: { confirm: t('admin.accounts.are_you_sure') } if can?(:approve, account.user)
  19. = table_link_to 'times', t('admin.accounts.reject'), reject_admin_account_path(account.id), method: :post, data: { confirm: t('admin.accounts.are_you_sure') } if can?(:reject, account.user)
  20. - else
  21. = table_link_to 'circle', t('admin.accounts.web'), web_path("accounts/#{account.id}")
  22. = table_link_to 'globe', t('admin.accounts.public'), TagManager.instance.url_for(account)