From 553b4f15f7719e8c663b927862689ce32f741bbe Mon Sep 17 00:00:00 2001 From: f Date: Mon, 17 May 2021 15:58:37 -0300 Subject: [PATCH] mostrar si es borrador sin acudir al sitio --- app/views/posts/index.haml | 3 +-- config/locales/en.yml | 2 ++ config/locales/es.yml | 2 ++ 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/app/views/posts/index.haml b/app/views/posts/index.haml index 55ebcce..06287ba 100644 --- a/app/views/posts/index.haml +++ b/app/views/posts/index.haml @@ -103,8 +103,7 @@ = link_to site_post_path(@site, post.path) do %span{ lang: post.locale, dir: dir }= post.title - if post.front_matter['draft'].present? - %span.badge.badge-primary - = post_label_t(:draft, post: post) + %span.badge.badge-primary= I18n.t('posts.attributes.draft.label') - if post.front_matter['categories'].present? %br %small diff --git a/config/locales/en.yml b/config/locales/en.yml index 2705ad9..fc194ea 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -413,6 +413,8 @@ en: destroy: Remove image belongs_to: empty: "(Empty)" + draft: + label: Draft reorder: submit: 'Save order' select: 'Select this post' diff --git a/config/locales/es.yml b/config/locales/es.yml index fe1e318..eca7cee 100644 --- a/config/locales/es.yml +++ b/config/locales/es.yml @@ -420,6 +420,8 @@ es: destroy: 'Eliminar imagen' belongs_to: empty: "(Vacío)" + draft: + label: Borrador reorder: submit: 'Guardar orden' select: 'Seleccionar este artículo'