From 45650ea93b723db551fec8c77fbac5065c7659a6 Mon Sep 17 00:00:00 2001 From: jikstra Date: Fri, 10 Sep 2021 16:23:26 +0200 Subject: Implement --show-wget-footer argument --- src/renderer.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/renderer.rs') diff --git a/src/renderer.rs b/src/renderer.rs index c0a243e..3c2d008 100644 --- a/src/renderer.rs +++ b/src/renderer.rs @@ -143,7 +143,9 @@ pub fn page( (arrow_up()) } div.footer { - (wget_download(&title_path, current_user)) + @if conf.show_wget_footer { + (wget_footer(&title_path, current_user)) + } @if !conf.hide_version_footer { (version_footer()) } @@ -195,7 +197,7 @@ fn version_footer() -> Markup { } } -fn wget_download(title_path: &str, current_user: Option<&CurrentUser>) -> Markup { +fn wget_footer(title_path: &str, current_user: Option<&CurrentUser>) -> Markup { let count = { let count_slashes = title_path.matches('/').count(); if count_slashes > 0 { -- cgit v1.2.3