5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-16 12:21:43 +00:00

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 = link_to site_post_path(@site, post.path) do
%span{ lang: post.locale, dir: dir }= post.title %span{ lang: post.locale, dir: dir }= post.title
- if post.front_matter['draft'].present? - if post.front_matter['draft'].present?
%span.badge.badge-primary %span.badge.badge-primary= I18n.t('posts.attributes.draft.label')
= post_label_t(:draft, post: post)
- if post.front_matter['categories'].present? - if post.front_matter['categories'].present?
%br %br
%small %small

View file

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

View file

@ -420,6 +420,8 @@ es:
destroy: 'Eliminar imagen' destroy: 'Eliminar imagen'
belongs_to: belongs_to:
empty: "(Vacío)" empty: "(Vacío)"
draft:
label: Borrador
reorder: reorder:
submit: 'Guardar orden' submit: 'Guardar orden'
select: 'Seleccionar este artículo' select: 'Seleccionar este artículo'