forked from neri/datatrash
fix unlimited max file size template render
This commit is contained in:
parent
b414fda39a
commit
e0b5a3fc65
|
@ -403,7 +403,7 @@ dependencies = [
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "datatrash"
|
name = "datatrash"
|
||||||
version = "1.1.4"
|
version = "1.1.5"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"actix-files",
|
"actix-files",
|
||||||
"actix-multipart",
|
"actix-multipart",
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
[package]
|
[package]
|
||||||
name = "datatrash"
|
name = "datatrash"
|
||||||
version = "1.1.4"
|
version = "1.1.5"
|
||||||
authors = ["neri"]
|
authors = ["neri"]
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
|
||||||
|
|
|
@ -52,7 +52,7 @@ fn build_index_html(config: &Config) -> String {
|
||||||
.replace("{max_size_snippet}", MAX_SIZE_SNIPPET_HTML.trim_end())
|
.replace("{max_size_snippet}", MAX_SIZE_SNIPPET_HTML.trim_end())
|
||||||
.replace("{max_size}", &render_file_size(max_file_size));
|
.replace("{max_size}", &render_file_size(max_file_size));
|
||||||
} else {
|
} else {
|
||||||
html = html.replace("{max_size_snippet}", MAX_SIZE_SNIPPET_HTML.trim_end())
|
html = html.replace("{max_size_snippet}", "")
|
||||||
};
|
};
|
||||||
html
|
html
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue