<% provide(:head_title, t("users.settings.account.connected_accounts.head_title")) %> <% provide(:container_class, "no-second-nav-container") %> <%= render partial: "users/settings/sidebar" %>

<%= t('users.settings.account.connected_accounts.title') %>

<% if @linked_accounts.present? %> <% @linked_accounts.each do |provider| %> <% settings = ApplicationSettings.instance %> <% if provider == 'giot_connect' || settings.values['azure_ad_apps']&.find { |v| v['provider_name'] == provider } %> <% if lookup_context.exists?(provider, 'users/settings/account/connected_accounts', true) %> <%= render partial: provider %> <% else %> <%= render partial: 'azure_ad', locals: { provider: provider } %> <% end %> <% end %> <% end %> <% else %>
<%= t('users.settings.account.connected_accounts.not_connected') %>
<% end %>