Sha256: dc540d9ebc46c68f257d89524531d6694048d89cdeef27cf62287dc0137dc74e

Contents?: true

Size: 1.07 KB

Versions: 13

Compression:

Stored size: 1.07 KB

Contents

- content_for :title do "Account Users" end

- @account_users.each do |account_user|
  %div
    - if account_user.user.name.blank?
      = account_user.user.email
    - else
      = account_user.user.name
    - if current_user.is?(:owner, @account) || current_user.is?(:admin, @account)
      |
      = link_to I18n.t("iugu.permissions"), account_roles_edit_path(@account, :user_id => account_user.user)
      - unless account_user.destroying?
        - unless account_user.is?(:owner) || account_user.user_id == current_user.id
          |
          = link_to I18n.t("iugu.remove"), account_users_destroy_path(@account, :user_id => account_user.user), :method => 'delete' 
      - else
        |
        - if IuguSDK::delay_account_user_exclusion == 0
          = I18n.t("iugu.removing")
        - else
          = link_to I18n.t("iugu.undo"), account_users_cancel_destruction_path(@account, :user_id => account_user.user), :method => 'delete' 

- if current_user.is?(:owner, @account) || current_user.is?(:admin, @account)
  %div
    = link_to I18n.t("iugu.invite"), new_invite_path(@account)

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
iugusdk-1.0.0.alpha.21 app/views/iugu/account_users/index.html.haml
iugusdk-1.0.0.alpha.20 app/views/iugu/account_users/index.html.haml
iugusdk-1.0.0.alpha.19 app/views/iugu/account_users/index.html.haml
iugusdk-1.0.0.alpha.18 app/views/iugu/account_users/index.html.haml
iugusdk-1.0.0.alpha.17 app/views/iugu/account_users/index.html.haml
iugusdk-1.0.0.alpha.16 app/views/iugu/account_users/index.html.haml
iugusdk-1.0.0.alpha.14 app/views/iugu/account_users/index.html.haml
iugusdk-1.0.0.alpha.13 app/views/iugu/account_users/index.html.haml
iugusdk-1.0.0.alpha.12 app/views/iugu/account_users/index.html.haml
iugusdk-1.0.0.alpha.11 app/views/iugu/account_users/index.html.haml
iugusdk-1.0.0.alpha.10 app/views/iugu/account_users/index.html.haml
iugusdk-1.0.0.alpha.9 app/views/iugu/account_users/index.html.haml
iugusdk-1.0.0.alpha.7 app/views/iugu/account_users/index.html.haml