diff --git a/src/builder.rs b/src/builder.rs index ca29282..44f5d82 100644 --- a/src/builder.rs +++ b/src/builder.rs @@ -150,7 +150,7 @@ fn get_html_input_type( } fn get_tera() -> Tera { - let mut tera = Tera::new(concat!(env!("CARGO_MANIFEST_DIR"), "*")).unwrap(); + let mut tera = Tera::new(concat!(env!("CARGO_MANIFEST_DIR"), "/src/templates/*.html")).unwrap(); tera.register_filter("get_html_input_type", get_html_input_type); tera.register_filter("get_html_input_class", get_html_input_class); tera.register_filter("get_icon", get_icon); diff --git a/tests/test_setup/comment.rs b/tests/test_setup/comment.rs index 8c01c2b..b8513d2 100644 --- a/tests/test_setup/comment.rs +++ b/tests/test_setup/comment.rs @@ -51,4 +51,6 @@ impl ActixAdminModelValidationTrait for Entity { } errors } -} \ No newline at end of file +} + +impl ActixAdminModelFilterTrait for Entity {} \ No newline at end of file diff --git a/tests/test_setup/helper.rs b/tests/test_setup/helper.rs index c9728ba..ceeaa8b 100644 --- a/tests/test_setup/helper.rs +++ b/tests/test_setup/helper.rs @@ -97,6 +97,7 @@ pub fn create_actix_admin_builder() -> ActixAdminBuilder { login_link: None, logout_link: None, file_upload_directory: "./file_uploads", + navbar_title: "test" }; let mut admin_builder = ActixAdminBuilder::new(configuration); diff --git a/tests/test_setup/post.rs b/tests/test_setup/post.rs index b62977c..29a1e7a 100644 --- a/tests/test_setup/post.rs +++ b/tests/test_setup/post.rs @@ -67,4 +67,6 @@ impl FromStr for Tea { } } -impl ActixAdminModelValidationTrait for Entity {} \ No newline at end of file +impl ActixAdminModelValidationTrait for Entity {} + +impl ActixAdminModelFilterTrait for Entity {} \ No newline at end of file