Render translation interface only when feature setting is active

This commit is contained in:
Senén Rodero Rodríguez
2019-05-31 18:01:10 +02:00
parent 01bb0b9c6b
commit 140c37fcc0

View File

@@ -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 %>