From a2211fa4726336ab480cf0af7d32853edc40daa6 Mon Sep 17 00:00:00 2001 From: Bao Trinh Date: Tue, 25 Jul 2023 19:03:05 -0500 Subject: Consolidate javascript and add comments --- src/renderer.rs | 64 ++++++++++++++++++++++++++------------------------------- 1 file changed, 29 insertions(+), 35 deletions(-) (limited to 'src/renderer.rs') diff --git a/src/renderer.rs b/src/renderer.rs index 946089d..699a01f 100644 --- a/src/renderer.rs +++ b/src/renderer.rs @@ -57,28 +57,6 @@ pub fn page( body #drop-container { - - (PreEscaped(r#" - - "#)) - div.toolbar_box_group { @if conf.file_upload { div.form { @@ -604,6 +582,33 @@ fn page_header(title: &str, file_upload: bool, favicon_route: &str, css_route: & title { (title) } + (PreEscaped(r#" + + "#)) + @if file_upload { (PreEscaped(r#" - "#)) - + body + { div.error { p { (error_code.to_string()) } @for error in error_description.lines() { -- cgit v1.2.3