Remove stats page
Diff
src/methods/repo.rs | 12 ------------
templates/repo/base.html | 1 -
templates/repo/stats.html | 6 ------
3 files changed, 19 deletions(-)
@@ -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<Repository>) -> Html<String> {
#[derive(Template)]
#[template(path = "repo/stats.html")]
pub struct View {
pub repo: Repository,
}
Html(View { repo }.render().unwrap())
}
@@ -9,6 +9,5 @@
<a href="/{{ repo.display() }}/tree" class="{% block tree_nav_class %}{% endblock %}">tree</a>
<a href="/{{ repo.display() }}/commit" class="{% block commit_nav_class %}{% endblock %}">commit</a>
<a href="/{{ repo.display() }}/diff" class="{% block diff_nav_class %}{% endblock %}">diff</a>
<a href="/{{ repo.display() }}/stats" class="{% block stats_nav_class %}{% endblock %}">stats</a>
</nav>
{% endblock %}
@@ -1,6 +1,0 @@
{% extends "repo/base.html" %}
{% block stats_nav_class %}active{% endblock %}
{% block content %}
{% endblock %}