From 0c5c1cb62eb598a6424cb5669ddf124bb7325226 Mon Sep 17 00:00:00 2001 From: f Date: Mon, 26 Feb 2018 20:16:17 -0300 Subject: [PATCH] ayuda para los posts --- app/views/posts/index.haml | 7 ++++--- config/locales/en.yml | 1 + config/locales/es.yml | 1 + 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/app/views/posts/index.haml b/app/views/posts/index.haml index 9d7cc14..ac41052 100644 --- a/app/views/posts/index.haml +++ b/app/views/posts/index.haml @@ -30,13 +30,14 @@ %br %small - post.categories.each do |c| - = link_to c, site_posts_path(@site, category: c) + = link_to c, site_posts_path(@site, category: c), + data: { toggle: 'tooltip' }, title: t('help.category') %td - if post.translations %small - post.translations.each do |pt| - = link_to pt.title, site_post_path(@site, pt, lang: pt.lang) - %span.badge.badge-info= t("i18n.#{pt.lang}") + = link_to pt.title, site_post_path(@site, pt, lang: pt.lang), + data: { toggle: 'tooltip' }, title: t("i18n.#{pt.lang}") %br %td= post.date.strftime('%F') diff --git a/config/locales/en.yml b/config/locales/en.yml index 1ccd0be..11285d3 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -3,6 +3,7 @@ en: argument_error: 'Argument `%{argument}` must be an instance of %{class}' unknown_locale: 'Unknown %{locale} locale' help: + category: 'Category' logout: 'Close the session' breadcrumbs: "What you see up here are the bread crumbs for this site. When you enter a new section, you will see the previous ones diff --git a/config/locales/es.yml b/config/locales/es.yml index 93b5e18..7324b6a 100644 --- a/config/locales/es.yml +++ b/config/locales/es.yml @@ -3,6 +3,7 @@ es: argument_error: 'El argumento `%{argument}` debe ser una instancia de %{class}' unknown_locale: 'El idioma %{locale} es desconocido' help: + category: 'Categoría' logout: 'Cierra la sesión' breadcrumbs: 'Lo que ves arriba son las migas de pan de este sitio. Cuando ingreses a una sección, podrás volver a las secciones