<% 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| %> <% if lookup_context.exists?(provider, 'users/settings/account/connected_accounts', true) %> <%= render partial: provider, locals: { provider: provider } %> <% elsif ApplicationSettings.instance.values['azure_ad_apps']&.find { |v| v['provider_name'] == provider } %> <%= render partial: 'azure_ad', locals: { provider: provider } %> <% end %> <% end %> <% else %>
<%= t('users.settings.account.connected_accounts.not_connected') %>
<% end %>