diff --git a/src/routes/mod.rs b/src/routes/mod.rs index 026029a7..fd47e1cd 100755 --- a/src/routes/mod.rs +++ b/src/routes/mod.rs @@ -246,8 +246,9 @@ pub fn theme_files(file: PathBuf, _build_id: &RawStr) -> Option { .map(ThemeFile) } -#[get("/static/cached/<_build_id>/", rank = 2)] -pub fn plume_static_files(file: PathBuf, _build_id: &RawStr) -> Option { +#[allow(unused_variables)] +#[get("/static/cached//", rank = 2)] +pub fn plume_static_files(file: PathBuf, build_id: &RawStr) -> Option { static_files(file) } #[get("/static/media/")] diff --git a/src/routes/user.rs b/src/routes/user.rs index 7155e0fb..f64fd42c 100644 --- a/src/routes/user.rs +++ b/src/routes/user.rs @@ -378,9 +378,10 @@ pub struct UpdateUserForm { pub hide_custom_css: bool, } -#[put("/@/<_name>/edit", data = "
")] +#[allow(unused_variables)] +#[put("/@//edit", data = "")] pub fn update( - _name: String, + name: String, conn: DbConn, mut user: User, form: LenientForm, diff --git a/templates/base.rs.html b/templates/base.rs.html index 65ff38cb..7dfc783a 100644 --- a/templates/base.rs.html +++ b/templates/base.rs.html @@ -12,9 +12,9 @@ @title ⋅ @i18n!(ctx.1, "Plume") - + - + @:head() @@ -26,7 +26,7 @@ - + diff --git a/templates/blogs/details.rs.html b/templates/blogs/details.rs.html index 5dacdd98..8598cc06 100644 --- a/templates/blogs/details.rs.html +++ b/templates/blogs/details.rs.html @@ -27,7 +27,7 @@ @if !ctx.2.clone().map(|u| u.hide_custom_css).unwrap_or(false) { @if let Some(ref theme) = blog.theme { - + } } }, { diff --git a/templates/posts/details.rs.html b/templates/posts/details.rs.html index 54482ed6..a6674748 100644 --- a/templates/posts/details.rs.html +++ b/templates/posts/details.rs.html @@ -24,7 +24,7 @@ @if !ctx.2.clone().map(|u| u.hide_custom_css).unwrap_or(false) { @if let Some(ref theme) = blog.theme { - + } } }, { diff --git a/templates/users/edit.rs.html b/templates/users/edit.rs.html index 3c0086d9..bad49b42 100644 --- a/templates/users/edit.rs.html +++ b/templates/users/edit.rs.html @@ -14,7 +14,7 @@ @i18n!(ctx.1, "To change your avatar, upload it to your gallery and then select from there.") @i18n!(ctx.1, "Upload an avatar")

- +