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