hoc/templates/overview.rs.html

30 lines
937 B
HTML
Raw Permalink Normal View History

@use super::base_html;
2019-05-14 01:11:39 +02:00
@use crate::statics::VersionInfo;
2019-11-25 17:27:16 +01:00
@use crate::template::RepoInfo;
2019-04-29 20:38:05 +02:00
2023-06-13 10:22:37 +02:00
@(version_info: VersionInfo, repo_count: usize, repo_info: RepoInfo, label: &str)
2019-04-29 20:38:05 +02:00
@:base_html("Hits-of-Code Badges", "Overview", {
2019-04-29 20:38:05 +02:00
<p>
2019-11-25 17:27:16 +01:00
The project <a href="@repo_info.url">@repo_info.url</a> has
<strong>@repo_info.hoc_pretty</strong> (exactly @repo_info.hoc) hits of code at
<a href="@repo_info.commit_url">@repo_info.head</a> on the
<code>@repo_info.branch</code> branch. The repository contains
2019-11-25 17:27:16 +01:00
<strong>@repo_info.commits</strong> commits.
2019-04-29 20:38:05 +02:00
</p>
<p>
To include the badge in your readme, use the following markdown:
</p>
<pre>
2023-01-16 09:54:04 +01:00
[![@label](@repo_info.base_url/@repo_info.path?branch=@repo_info.branch&label=@label)](@repo_info.base_url/@repo_info.path/view?branch=@repo_info.branch&label=@label)
2019-04-29 20:38:05 +02:00
</pre>
2020-05-15 13:15:54 +02:00
<form method="post" action="/@repo_info.path/delete">
<button type="submit">Rebuild Cache</button>
</form>
2019-06-12 21:50:45 +02:00
}, version_info, repo_count)