5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-06-02 04:34:16 +00:00

recordar que no todas las previsualizaciones son previsualizables

This commit is contained in:
f 2020-11-26 13:24:03 -03:00
parent c7e3a0039f
commit 3decc8a919
4 changed files with 12 additions and 6 deletions

View file

@ -113,7 +113,7 @@ class Post < OpenStruct
# Notificar a les usuaries que están viendo una previsualización
# XXX: Asume que estamos usando Bootstrap :B
html.at_css('body').first_element_child.before("<div class=\"alert alert-warning text-center\">#{I18n.t('posts.preview_message')}</div>")
html.at_css('body').first_element_child.before("<div class=\"alert alert-warning text-center\">#{I18n.t('posts.preview.message')}</div>")
# Cacofonía
html.to_html.html_safe

View file

@ -11,11 +11,13 @@
= link_to t('posts.edit'),
edit_site_post_path(@site, @post.id),
class: 'btn btn-block'
= link_to t('posts.preview'),
= link_to t('posts.preview.btn'),
site_post_preview_path(@site, @post.id),
class: 'btn btn-block',
target: '_blank',
rel: 'noopener'
.alert.alert-info= t('posts.preview.alert')
%table.table.table-condensed
%thead

View file

@ -491,8 +491,10 @@ en:
categories: 'Everything'
index: 'Posts'
edit: 'Edit'
preview: 'Preliminary version'
preview_message: 'This is a preliminary version, use the Publish changes button back on the panel to publish the article on your site.'
preview:
btn: 'Preliminary version'
alert: 'Not every article type has a preliminary version :)'
message: 'This is a preliminary version, use the Publish changes button back on the panel to publish the article on your site.'
open: 'Tip: You can add new options by typing them and pressing Enter'
private: '&#128274; The values of this field will remain private'
select:

View file

@ -504,8 +504,10 @@ es:
new: 'Agregar:'
index: 'Artículos'
edit: 'Editar'
preview: 'Versión preliminar'
preview_message: 'Esta es una versión preliminar, para que el artículo aparezca en tu sitio utiliza el botón Publicar cambios en el panel'
preview:
btn: 'Versión preliminar'
alert: 'No todos los tipos de artículos poseen vista preliminar :)'
message: 'Esta es una versión preliminar, para que el artículo aparezca en tu sitio utiliza el botón Publicar cambios en el panel'
open: 'Nota: Puedes agregar más opciones a medida que las escribes y presionas Entrar'
private: '&#128274; Los valores de este campo serán privados'
select: