From b001a0330123c11b68e4fdca334f52c629321e36 Mon Sep 17 00:00:00 2001 From: Jordan Doyle Date: Fri, 8 Jul 2022 23:04:34 +0100 Subject: [PATCH] Remove stats page --- src/methods/repo.rs | 12 ------------ templates/repo/base.html | 1 - templates/repo/stats.html | 6 ------ 3 files changed, 19 deletions(-) delete mode 100644 templates/repo/stats.html diff --git a/src/methods/repo.rs b/src/methods/repo.rs index 8753160..e3a62df 100644 --- a/src/methods/repo.rs +++ b/src/methods/repo.rs @@ -59,7 +59,6 @@ pub async fn service(mut request: Request) -> Some("tree") => BoxCloneService::new(handle_tree.into_service()), Some("commit") => BoxCloneService::new(handle_commit.into_service()), Some("diff") => BoxCloneService::new(handle_diff.into_service()), - Some("stats") => BoxCloneService::new(handle_stats.into_service()), Some("tag") => BoxCloneService::new(handle_tag.into_service()), Some(v) => { uri_parts.push(v); @@ -269,14 +268,3 @@ pub async fn handle_diff( .unwrap(), ) } - -#[allow(clippy::unused_async)] -pub async fn handle_stats(Extension(repo): Extension) -> Html { - #[derive(Template)] - #[template(path = "repo/stats.html")] - pub struct View { - pub repo: Repository, - } - - Html(View { repo }.render().unwrap()) -} diff --git a/templates/repo/base.html b/templates/repo/base.html index 24e1590..c10e93b 100644 --- a/templates/repo/base.html +++ b/templates/repo/base.html @@ -9,6 +9,5 @@ tree commit diff - stats {% endblock %} diff --git a/templates/repo/stats.html b/templates/repo/stats.html deleted file mode 100644 index e917c8f..0000000 --- a/templates/repo/stats.html +++ /dev/null @@ -1,6 +0,0 @@ -{% extends "repo/base.html" %} - -{% block stats_nav_class %}active{% endblock %} - -{% block content %} -{% endblock %} \ No newline at end of file -- libgit2 1.7.2