Sha256: 8ba46576689759bcaa19aab54203bf829948fca7ca3521f28b37d1645630bc68

Contents?: true

Size: 834 Bytes

Versions: 2

Compression:

Stored size: 834 Bytes

Contents

- content_for :title do "Account Settings" end

%h3
  = I18n.t "iugu.account_settings"

- if current_user.accounts.count > 0

  %h3 
    - if IuguSDK::allow_create_account
      = I18n.t("iugu.accounts")
    - else
      - if current_user.accounts.count > 1
        = I18n.t("iugu.accounts")
      - else
        = I18n.t("iugu.account")
  %div
    = link_to I18n.t("iugu.create_account"), account_create_path, :method => :post

  - 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(:id => account.id)
      |
      = link_to I18n.t("iugu.settings"), account_view_path(:id => account.id)

- else
  %h2
    I dont have any Accounts

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
iugusdk-1.0.0.alpha.1 app/views/iugu/settings/accounts.html.haml
iugusdk-1.0.0.alpha.0 app/views/iugu/settings/accounts.html.haml