diff options
Diffstat (limited to 'src/renderer.rs')
-rw-r--r-- | src/renderer.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/renderer.rs b/src/renderer.rs index 75d2c71..7ec48b0 100644 --- a/src/renderer.rs +++ b/src/renderer.rs @@ -10,9 +10,11 @@ use crate::auth::CurrentUser; use crate::listing::{Breadcrumb, Entry, QueryParameters, SortingMethod, SortingOrder}; use crate::{archive::ArchiveMethod, MiniserveConfig}; +#[allow(clippy::too_many_arguments)] /// Renders the file listing pub fn page( entries: Vec<Entry>, + readme: Option<(String, String)>, is_root: bool, query_params: QueryParameters, breadcrumbs: Vec<Breadcrumb>, @@ -165,6 +167,12 @@ pub fn page( } } } + @if let Some(readme) = readme { + div { + h3 { (readme.0) } + (PreEscaped (readme.1)); + } + } a.back href="#top" { (arrow_up()) } |