From 6f24c68ab5b74947b64964fe3883872e27d9045f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mar=C3=ADa=20Checa?= Date: Sun, 2 Jul 2017 23:12:47 +0200 Subject: [PATCH] Improved pages index Locale can be seen as text instead of the code. --- app/views/admin/site_customization/pages/index.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/admin/site_customization/pages/index.html.erb b/app/views/admin/site_customization/pages/index.html.erb index 85c3c7fc8..a629a8a8d 100644 --- a/app/views/admin/site_customization/pages/index.html.erb +++ b/app/views/admin/site_customization/pages/index.html.erb @@ -28,7 +28,7 @@ <%= I18n.l page.created_at, format: :short %> <%= I18n.l page.created_at, format: :short %> <%= t("admin.site_customization.pages.page.status_#{page.status}") %> - <%= page.locale %> + <%= name_for_locale(page.locale) rescue nil %> <% if page.status == "published" %>