mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-16 12:31:42 +00:00
mostrar si es borrador sin acudir al sitio
This commit is contained in:
parent
df425bab5a
commit
553b4f15f7
3 changed files with 5 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -413,6 +413,8 @@ en:
|
|||
destroy: Remove image
|
||||
belongs_to:
|
||||
empty: "(Empty)"
|
||||
draft:
|
||||
label: Draft
|
||||
reorder:
|
||||
submit: 'Save order'
|
||||
select: 'Select this post'
|
||||
|
|
|
@ -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'
|
||||
|
|
Loading…
Reference in a new issue