Sha256: 1c54611c8b4bb27ed6678546b807048da090091552992fab203ee931e83d9814
Contents?: true
Size: 809 Bytes
Versions: 46
Compression:
Stored size: 809 Bytes
Contents
<% i18n_scope = "decidim.system.organizations.omniauth_settings" %> <div class="card"> <h5><%= provider_name(provider) %></h5> <% if provider_enabled?(provider) %> <p class="help-text"><%= t("enabled_by_default", scope: i18n_scope) %></p> <% end %> <div class="card-section"> <%= f.check_box( "omniauth_settings_#{provider}_enabled", label: t("enabled", scope: i18n_scope) ) %> <% Rails.application.secrets.dig(:omniauth, provider.to_sym).keys.select { |k| k != :enabled }.each do |setting| %> <%= f.text_field("omniauth_settings_#{provider}_#{setting}", label: I18n.t( ".#{setting}", scope: [:icon, :icon_path].include?(setting) ? i18n_scope : "#{i18n_scope}.#{provider}" )) %> <% end %> </div> </div>
Version data entries
46 entries across 46 versions & 1 rubygems