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:
parent
758f9de36d
commit
abacabff8e
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