From 6cdb825496dc643f3b1621c4f1e8983f0c3e1bd7 Mon Sep 17 00:00:00 2001 From: f Date: Thu, 25 Jun 2020 16:53:55 -0300 Subject: [PATCH] =?UTF-8?q?emprolijar=20tabla=20de=20art=C3=ADculos?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/views/posts/index.haml | 9 +++++---- config/locales/es.yml | 1 + 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/app/views/posts/index.haml b/app/views/posts/index.haml index 8b5e3ac1..6f9088ce 100644 --- a/app/views/posts/index.haml +++ b/app/views/posts/index.haml @@ -40,7 +40,8 @@ - @site.locales.each do |locale| = link_to t("locales.#{locale}.name"), site_posts_path(@site, locale: locale), class: "mr-2 mt-2 mb-2#{locale == @locale ? 'active font-weight-bold' : ''}" - %table.table.table-condensed.table-draggable + %table.table.table-draggable + %caption.sr-only= t('posts.caption') %tbody - dir = t("locales.#{@locale}.dir") - @posts.each_with_index do |post, i| @@ -64,7 +65,7 @@ -# Orden más alto es mayor prioridad = hidden_field 'post[reorder]', post.uuid.value, value: @posts.length - i, class: 'reorder' - %td{ class: dir } + %td.w-100{ class: dir } %small = link_to @site.i18n.dig('layouts', post.layout.name.to_s) || post.layout.name.to_s.humanize, site_posts_path(@site, layout: post.layout.name) @@ -91,10 +92,10 @@ - if @usuarie || policy(post).edit? = link_to t('posts.edit'), edit_site_post_path(@site, post.id), - class: 'btn' + class: 'btn btn-block' - if @usuarie || policy(post).destroy? = link_to t('posts.destroy'), site_post_path(@site, post.id), - class: 'btn', + class: 'btn btn-block', method: :delete, data: { confirm: t('posts.confirm_destroy') } diff --git a/config/locales/es.yml b/config/locales/es.yml index 7aa87cdb..29a840e2 100644 --- a/config/locales/es.yml +++ b/config/locales/es.yml @@ -383,6 +383,7 @@ es: en: 'inglés' ar: 'árabe' posts: + caption: Lista de artículos attribute_ro: file: download: Descargar archivo