diff --git a/app/views/spree/admin/authentication_methods/edit.html.erb b/app/views/spree/admin/authentication_methods/edit.html.erb index 5d8ffbc..f24f52a 100644 --- a/app/views/spree/admin/authentication_methods/edit.html.erb +++ b/app/views/spree/admin/authentication_methods/edit.html.erb @@ -1,5 +1,5 @@ <% admin_breadcrumb(t('spree.settings')) %> -<% admin_breadcrumb(link_to I18n.t('spree.social_authentication_methods'), spree.admin_authentication_methods_path) %> +<% admin_breadcrumb(link_to I18n.t('spree.social_auth'), spree.admin_authentication_methods_path) %> <% content_for :page_title do %> <%= I18n.t('spree.edit_social_method') %> diff --git a/app/views/spree/admin/authentication_methods/index.html.erb b/app/views/spree/admin/authentication_methods/index.html.erb index 7a0d3d5..ef53029 100644 --- a/app/views/spree/admin/authentication_methods/index.html.erb +++ b/app/views/spree/admin/authentication_methods/index.html.erb @@ -1,5 +1,5 @@ <% admin_breadcrumb(t('spree.settings')) %> -<% admin_breadcrumb(I18n.t('spree.social_authentication_methods')) %> +<% admin_breadcrumb(I18n.t('spree.social_auth')) %> <% content_for :page_actions do %> <% if can? :manage, Spree::AuthenticationMethod %> diff --git a/app/views/spree/admin/authentication_methods/new.html.erb b/app/views/spree/admin/authentication_methods/new.html.erb index ddb5880..fa0f8a3 100644 --- a/app/views/spree/admin/authentication_methods/new.html.erb +++ b/app/views/spree/admin/authentication_methods/new.html.erb @@ -1,5 +1,5 @@ <% admin_breadcrumb(t('spree.settings')) %> -<% admin_breadcrumb(link_to I18n.t('spree.social_authentication_methods'), spree.admin_authentication_methods_path) %> +<% admin_breadcrumb(link_to I18n.t('spree.social_auth'), spree.admin_authentication_methods_path) %> <% admin_breadcrumb(t('spree.new_social_method')) %> <%= render 'spree/shared/error_messages', target: @authentication_method %> diff --git a/config/initializers/add_authentication_methods_to_settings_menu.rb b/config/initializers/add_authentication_methods_to_settings_menu.rb index 5bcf1e9..0bdeb57 100644 --- a/config/initializers/add_authentication_methods_to_settings_menu.rb +++ b/config/initializers/add_authentication_methods_to_settings_menu.rb @@ -5,7 +5,7 @@ if settings_menu settings_menu.children << config.class::MenuItem.new( - label: :social_authentication_methods, + label: :social_auth, url: :admin_authentication_methods_path, condition: -> { can?(:admin, Spree::AuthenticationMethod) } ) diff --git a/config/locales/en.yml b/config/locales/en.yml index c6125f3..9904ac1 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -18,12 +18,12 @@ en: sign_in_through_one_of_these_services: "Sign in through one of these services:" social_api_key: "API Key" social_api_secret: "API Secret" - social_authentication_methods: "Social Authentication Methods" - social_authentication_methods_description: "Setup OAuth Authentication Methods" + social_auth: "Social Auth" + social_auth_description: "Setup OAuth Authentication Methods" social_provider: "Social Provider" please_confirm_your_email: "Please confirm your email address to continue" sign_in_with: "Login with %{provider}" you_have_signed_in_with_these_services: "You Have Signed In With These Services" admin: tab: - social_authentication_methods: "Social Authentication Methods" + social_auth: "Social Auth" diff --git a/spec/features/spree/admin/authentication_methods_configuration_spec.rb b/spec/features/spree/admin/authentication_methods_configuration_spec.rb index 6277258..1990823 100644 --- a/spec/features/spree/admin/authentication_methods_configuration_spec.rb +++ b/spec/features/spree/admin/authentication_methods_configuration_spec.rb @@ -7,7 +7,7 @@ it 'has configuration tab' do visit spree.admin_path click_link 'Settings' - expect(page).to have_text(/Social Authentication Methods/i) + expect(page).to have_text(/Social Auth/i) end end @@ -15,7 +15,7 @@ before do visit spree.admin_path click_link 'Settings' - click_link 'Social Authentication Methods' + click_link 'Social Auth' end it 'can create new' do @@ -46,7 +46,7 @@ before do visit spree.admin_path click_link 'Settings' - click_link 'Social Authentication Methods' + click_link 'Social Auth' end it 'can be updated' do