From edf6f9f81aadf637203c091bc8701d59fa4dc466 Mon Sep 17 00:00:00 2001 From: Hubert Date: Sat, 24 Jul 2021 06:52:46 +0200 Subject: [PATCH] root -> breadcrumb --- src/web/repo.rs | 8 ++++---- templates/git.html | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/web/repo.rs b/src/web/repo.rs index 578d7d5..ff276c5 100644 --- a/src/web/repo.rs +++ b/src/web/repo.rs @@ -38,13 +38,13 @@ pub enum Entry { #[derive(Template)] #[template(path = "git.html")] -pub struct GitMainTemplate +pub struct GitMainTemplate where for <'a> &'a TS : IntoIterator, - for <'a> &'a ROOT : IntoIterator, + for <'a> &'a BREADCRUMB: IntoIterator, { repo : Repository, browse : TS, - root : ROOT, + breadcrumb: BREADCRUMB, user_opt : Option, revisions_nbr : u32, branches_nbr : u32, @@ -116,7 +116,7 @@ pub async fn git_main( Ok(GitMainTemplate { repo, browse : entries, - root : path, + breadcrumb: path, user_opt : user, revisions_nbr : gitrepo.get_revisions_nbr(), branches_nbr : gitrepo.get_branches_nbr(), diff --git a/templates/git.html b/templates/git.html index fabc595..6c3a3cd 100644 --- a/templates/git.html +++ b/templates/git.html @@ -61,7 +61,7 @@