From 140c37fcc06006ccd488ae0aadedbc192cef4c19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sen=C3=A9n=20Rodero=20Rodr=C3=ADguez?= Date: Fri, 31 May 2019 18:01:10 +0200 Subject: [PATCH] Render translation interface only when feature setting is active --- app/views/shared/_globalize_locales.html.erb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/views/shared/_globalize_locales.html.erb b/app/views/shared/_globalize_locales.html.erb index e6b982cba..a43961ab5 100644 --- a/app/views/shared/_globalize_locales.html.erb +++ b/app/views/shared/_globalize_locales.html.erb @@ -1,3 +1,5 @@ +<% if translations_interface_enabled? %> <%= render "shared/common_globalize_locales", resource: resource, display_style: lambda { |locale| enable_translation_style(resource, locale) } %> +<% end %>