From 6ce2d9ea2fc2d3bcb4a24e5a3103675b28cbe90e Mon Sep 17 00:00:00 2001 From: f Date: Tue, 27 Feb 2018 18:26:29 -0300 Subject: [PATCH] ver todos los posts por su idioma --- app/views/posts/index.haml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app/views/posts/index.haml b/app/views/posts/index.haml index 98cd420..9359223 100644 --- a/app/views/posts/index.haml +++ b/app/views/posts/index.haml @@ -9,8 +9,12 @@ .row .col - = link_to t('posts.new'), new_site_post_path(@site, lang: @lang), - class: 'btn btn-success' + .btn-group + = link_to t('posts.new'), new_site_post_path(@site, lang: @lang), + class: 'btn btn-success' + - I18n.available_locales.map(&:to_s).each do |l| + = link_to t("i18n.#{l}"), site_posts_path(@site, category: @category, lang: l), + class: 'btn btn-info' .row .col