From b001a0330123c11b68e4fdca334f52c629321e36 Mon Sep 17 00:00:00 2001 From: Jordan Doyle Date: Fri, 08 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(-) diff --git a/src/methods/repo.rs b/src/methods/repo.rs index 8753160..e3a62df 100644 --- a/src/methods/repo.rs +++ a/src/methods/repo.rs @@ -59,7 +59,6 @@ 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); @@ -268,15 +267,4 @@ .render() .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 +++ a/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 100644 --- a/templates/repo/stats.html +++ /dev/null @@ -1,6 +1,0 @@ -{% extends "repo/base.html" %} - -{% block stats_nav_class %}active{% endblock %} - -{% block content %} -{% endblock %}-- rgit 0.1.3