mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-11-18 23:21:30 +08:00
32 lines
1.3 KiB
Text
32 lines
1.3 KiB
Text
<% provide(:head_title, t("users.settings.account.connected_accounts.head_title")) %>
|
|
<% provide(:container_class, "no-second-nav-container") %>
|
|
|
|
<%= render partial: "users/settings/sidebar" %>
|
|
<div class="tab-content user-account-connected-accounts">
|
|
<div class="tab-pane tab-pane-settings active" role="tabpanel">
|
|
|
|
<div class="row">
|
|
<div class="col-xs-12 col-sm-12">
|
|
<h1 class="connected-accounts-title"><%= t('users.settings.account.connected_accounts.title') %></h1>
|
|
<% 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 %>
|
|
<h5>
|
|
<i><%= t('users.settings.account.connected_accounts.not_connected') %></i>
|
|
</h5>
|
|
<% end %>
|
|
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="tab-pane tab-pane-settings" role="tabpanel"></div>
|
|
</div>
|