diff options
author | Dean Li <deantvv@gmail.com> | 2021-04-18 03:22:52 +0000 |
---|---|---|
committer | Dean Li <deantvv@gmail.com> | 2021-04-18 03:22:52 +0000 |
commit | c9506c72ff368867982d138a686648fa302b116d (patch) | |
tree | 01f25ffc462c27399fc7764f4081cd71f85b6d62 /src/renderer.rs | |
parent | Separate tar archive and tar flags (diff) | |
download | miniserve-c9506c72ff368867982d138a686648fa302b116d.tar.gz miniserve-c9506c72ff368867982d138a686648fa302b116d.zip |
Change naming of uncompressed/compressed tarballs
Use following terminology:
uncompressed tarballs => `uncompressed tar archives`
compressed ones => `gz-compressed tar archives`
Diffstat (limited to 'src/renderer.rs')
-rw-r--r-- | src/renderer.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/renderer.rs b/src/renderer.rs index 71a929a..5cb5452 100644 --- a/src/renderer.rs +++ b/src/renderer.rs @@ -26,7 +26,7 @@ pub fn page( encoded_dir: &str, breadcrumbs: Vec<Breadcrumb>, tar_enabled: bool, - tar_archive_enabled: bool, + tar_gz_enabled: bool, zip_enabled: bool, hide_version_footer: bool, ) -> Markup { @@ -95,10 +95,10 @@ pub fn page( } } div.toolbar { - @if tar_enabled || tar_archive_enabled || zip_enabled { + @if tar_enabled || tar_gz_enabled || zip_enabled { div.download { @for compression_method in CompressionMethod::iter() { - @if compression_method.is_enabled(tar_enabled, tar_archive_enabled, zip_enabled) { + @if compression_method.is_enabled(tar_enabled, tar_gz_enabled, zip_enabled) { (archive_button(compression_method, sort_method, sort_order)) } } |