Sha256: b3c7af20814047bfe0bcfc0da8df2e47038ee8f42e69691e6e0cd45baeecc042

Contents?: true

Size: 913 Bytes

Versions: 4

Compression:

Stored size: 913 Bytes

Contents

h1 Cambiar a otra cuenta

/ FIXME!: user_accounts add active column
- if @user_accounts.empty?
  p No tenés ninguna cuenta disponible
- else
  - if @current_tenant_set_by_domain_or_subdomain
    p Estás en el dominio de #{ActsAsTenant.current_tenant} (#{request.host})
    p
      | Para cambiar de cuenta vas a tener que iniciar sesión en el dominio
      |< de Bien o de la cuenta específica a la que quieras cambiar

  ul.m-auto.list-group style="max-width: 20em"
    - @user_accounts.each do |user_account|
      li.list-group-item
        - if @current_tenant_set_by_domain_or_subdomain
          = user_account.account
        - elsif user_account.account == ActsAsTenant.current_tenant
          b
            = user_account.account
            |  (Actual)
        - else
          = link_to user_account.account, users_account_switch_path(user_account),
                    'data-turbo-method': :post

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
pg_rails-7.5.7 pg_engine/app/views/users/account_switcher/list.html.slim
pg_rails-7.5.6 pg_engine/app/views/users/account_switcher/list.html.slim
pg_rails-7.5.5 pg_engine/app/views/users/account_switcher/list.html.slim
pg_rails-7.5.4 pg_engine/app/views/users/account_switcher/list.html.slim