mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-15 20:51:42 +00:00
Merge branch 'issue-13114' into 'rails'
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
feat: avisar que hay que publicar al cambiar la configuracion #13114 See merge request sutty/sutty!172
This commit is contained in:
commit
22069cce68
4 changed files with 6 additions and 1 deletions
|
@ -57,6 +57,7 @@ class SitesController < ApplicationController
|
||||||
usuarie: current_usuarie)
|
usuarie: current_usuarie)
|
||||||
|
|
||||||
if service.update.valid?
|
if service.update.valid?
|
||||||
|
flash[:notice] = I18n.t('sites.update.post')
|
||||||
redirect_to site_posts_path(site, locale: site.default_locale)
|
redirect_to site_posts_path(site, locale: site.default_locale)
|
||||||
else
|
else
|
||||||
render 'edit'
|
render 'edit'
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
- flash.each do |type, message|
|
- flash.each do |type, message|
|
||||||
- unless type == 'js'
|
- unless type == 'js'
|
||||||
= render 'bootstrap/alert' do
|
= render 'bootstrap/alert' do
|
||||||
= message
|
= sanitize_markdown message, tags: %w[a strong em]
|
||||||
|
|
|
@ -420,6 +420,8 @@ en:
|
||||||
title: 'Edit %{site}'
|
title: 'Edit %{site}'
|
||||||
submit: 'Save changes'
|
submit: 'Save changes'
|
||||||
btn: 'Configuration'
|
btn: 'Configuration'
|
||||||
|
update:
|
||||||
|
post: "Your changes have been saved. **If you enabled a publication method, don't forget to publish changes.**"
|
||||||
form:
|
form:
|
||||||
errors:
|
errors:
|
||||||
title: There were errors and we couldn't save your changes :(
|
title: There were errors and we couldn't save your changes :(
|
||||||
|
|
|
@ -426,6 +426,8 @@ es:
|
||||||
title: 'Editar %{site}'
|
title: 'Editar %{site}'
|
||||||
submit: 'Guardar cambios'
|
submit: 'Guardar cambios'
|
||||||
btn: 'Configuración'
|
btn: 'Configuración'
|
||||||
|
update:
|
||||||
|
post: "Tus cambios han sido guardados. **Si agregaste un método de publicación, no te olvides de publicar cambios.**"
|
||||||
form:
|
form:
|
||||||
errors:
|
errors:
|
||||||
title: Hubo errores y no pudimos guardar tus cambios :(
|
title: Hubo errores y no pudimos guardar tus cambios :(
|
||||||
|
|
Loading…
Reference in a new issue