mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-22 21:06:22 +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:)
|
||||
params = ActionController::Parameters.new(
|
||||
post: {
|
||||
layout: 'license',
|
||||
lang: lang,
|
||||
title: site.licencia.name,
|
||||
description: I18n.t('sites.form.licencia.title'),
|
||||
author: %w[Sutty],
|
||||
permalink: "#{I18n.t('activerecord.models.licencia').downcase}/",
|
||||
content: CommonMarker.render_html(site.licencia.deed)
|
||||
}
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue