mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-26 22:46:21 +00:00
fix: agregar licencia con layout
This commit is contained in:
parent
75c4d3264d
commit
67e11e1f3c
1 changed files with 1 additions and 2 deletions
|
@ -104,11 +104,10 @@ SiteService = Struct.new(:site, :usuarie, :params, keyword_init: true) do
|
||||||
def add_licencia(lang:)
|
def add_licencia(lang:)
|
||||||
params = ActionController::Parameters.new(
|
params = ActionController::Parameters.new(
|
||||||
post: {
|
post: {
|
||||||
|
layout: 'license',
|
||||||
lang: lang,
|
lang: lang,
|
||||||
title: site.licencia.name,
|
title: site.licencia.name,
|
||||||
description: I18n.t('sites.form.licencia.title'),
|
description: I18n.t('sites.form.licencia.title'),
|
||||||
author: %w[Sutty],
|
|
||||||
permalink: "#{I18n.t('activerecord.models.licencia').downcase}/",
|
|
||||||
content: CommonMarker.render_html(site.licencia.deed)
|
content: CommonMarker.render_html(site.licencia.deed)
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue