Sha256: fd2b104ca3f03270b96a3b2800e715cd3bbe0f3f79f4e59c518b3e1922568433

Contents?: true

Size: 896 Bytes

Versions: 13

Compression:

Stored size: 896 Bytes

Contents

- content_for :title do I18n.t("iugu.account_settings") end

%h3
  = I18n.t "iugu.account_settings"

- if current_user.accounts.count > 0

  %h3 
    - if IuguSDK::enable_multiple_accounts
      = I18n.t("iugu.accounts")
    - else
      - if current_user.accounts.count > 1
        = I18n.t("iugu.accounts")
      - else
        = I18n.t("iugu.account")

  - current_user.accounts.each do |account|
    %div
      = account.name
      - if current_user_account.account_id == account.id
        |
        = I18n.t("iugu.active")
      - else
        |
        = link_to I18n.t("iugu.select"), account_select_path(account)
      |
      = link_to I18n.t("iugu.settings"), account_view_path(account)

- else
  %h2
    = I18n.t("iugu.i_dont_have_any_accounts")

- if IuguSDK::enable_multiple_accounts == true
  %div
    = link_to I18n.t("iugu.create_account"), account_create_path, :method => :post

Version data entries

13 entries across 13 versions & 1 rubygems

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