🚚 Renombra with_component
por add_component
This commit is contained in:
parent
19c16d962f
commit
0e4f10237d
5 changed files with 46 additions and 16 deletions
|
@ -33,7 +33,7 @@ impl Display for ErrorPage {
|
|||
if let Ok(page) = error_page
|
||||
.with_title(L10n::n("Error FORBIDDEN"))
|
||||
.with_layout("error")
|
||||
.with_component(Html::with(move |_| error403.clone()))
|
||||
.add_component(Html::with(move |_| error403.clone()))
|
||||
.render()
|
||||
{
|
||||
write!(f, "{}", page.into_string())
|
||||
|
@ -48,7 +48,7 @@ impl Display for ErrorPage {
|
|||
if let Ok(page) = error_page
|
||||
.with_title(L10n::n("Error RESOURCE NOT FOUND"))
|
||||
.with_layout("error")
|
||||
.with_component(Html::with(move |_| error404.clone()))
|
||||
.add_component(Html::with(move |_| error404.clone()))
|
||||
.render()
|
||||
{
|
||||
write!(f, "{}", page.into_string())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue