5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-16 20:16:22 +00:00

fix: agregar licencia con layout

This commit is contained in:
f 2023-03-22 18:39:56 -03:00
parent 758f9de36d
commit abacabff8e

View file

@ -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)
}
)