mostrar si es borrador sin acudir al sitio

This commit is contained in:
f 2021-05-17 15:58:37 -03:00
parent df425bab5a
commit 553b4f15f7
3 changed files with 5 additions and 2 deletions

View file

@ -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

View file

@ -413,6 +413,8 @@ en:
destroy: Remove image
belongs_to:
empty: "(Empty)"
draft:
label: Draft
reorder:
submit: 'Save order'
select: 'Select this post'

View file

@ -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'