diff --git a/Cargo.toml b/Cargo.toml index e1949c8..d7085c3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,7 +9,9 @@ exclude = [ "examples/*", "actix_admin_macros/*", "tests/*", - "README.md" + "docs/*", + "README.md", + ".gitignore" ] [lib] diff --git a/static/Screenshot.png b/docs/static/Screenshot.png similarity index 100% rename from static/Screenshot.png rename to docs/static/Screenshot.png diff --git a/src/builder.rs b/src/builder.rs index 7a96474..4c2e306 100644 --- a/src/builder.rs +++ b/src/builder.rs @@ -2,7 +2,6 @@ use crate::{prelude::*, ActixAdminMenuElement, routes::delete_static_content}; use actix_web::{web, Route}; use std::collections::HashMap; use std::fs; - use crate::routes::{ create_get, create_post, delete, delete_many, edit_get, edit_post, index, list, not_found, show, download }; @@ -105,8 +104,8 @@ impl ActixAdminBuilderTrait for ActixAdminBuilder { .route("/show/{id}", web::get().to(show::)) .route("/static_content/{id}/{column_name}", web::get().to(download::)) .route("/static_content/{id}/{column_name}", web::delete().to(delete_static_content::)) - .default_service(web::to(not_found)), - ); + .default_service(web::to(not_found)) + ); fs::create_dir_all(format!("{}/{}", &self.actix_admin.configuration.file_upload_directory, E::get_entity_name())).unwrap(); diff --git a/templates/head.html b/templates/head.html index b6e8b8f..7e470df 100644 --- a/templates/head.html +++ b/templates/head.html @@ -6,6 +6,7 @@ +{% raw %}