Recupera la versión con valor propio en activos

This commit is contained in:
Manuel Cillero 2023-07-06 18:29:01 +02:00
parent 4673b82a93
commit f85a35b5f4
5 changed files with 33 additions and 25 deletions

View file

@ -46,13 +46,16 @@ impl ThemeTrait for Bootsier {
fn before_prepare_page(&self, page: &mut Page) {
page.alter_favicon(Some(Favicon::new().with_icon("/theme/favicon.ico")))
.alter_context(ContextOp::AddStyleSheet(
StyleSheet::located("/bootsier/css/bootstrap.min.css?v=5.1.3").with_weight(-99),
StyleSheet::located("/bootsier/css/bootstrap.min.css")
.with_version("5.1.3")
.with_weight(-99),
))
.alter_context(ContextOp::AddJavaScript(
JavaScript::located("/bootsier/js/bootstrap.bundle.min.js?v=5.1.3")
JavaScript::located("/bootsier/js/bootstrap.bundle.min.js")
.with_version("5.1.3")
.with_weight(-99),
));
JQuery::add_in(page.context());
JQuery.enable_jquery(page.context());
}
fn prepare_page_body(&self, page: &mut Page) -> Markup {