5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-23 01:36:22 +00:00

fix: agregar licencia con layout

This commit is contained in:
f 2023-03-22 18:39:56 -03:00
parent 75c4d3264d
commit 67e11e1f3c

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