2019-04-29 20:38:05 +02:00
|
|
|
@use super::base;
|
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
|
|
|
|
2019-11-25 17:27:16 +01:00
|
|
|
@(version_info: VersionInfo, repo_count: usize, repo_info: RepoInfo)
|
2019-04-29 20:38:05 +02:00
|
|
|
|
|
|
|
@:base("Hits-of-Code Badges", "Overview", {
|
|
|
|
|
|
|
|
<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>. The repository contains
|
|
|
|
<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>
|
2019-11-25 17:27:16 +01:00
|
|
|
[![Hits-of-Code](https://@repo_info.domain/@repo_info.path)](https://@repo_info.domain/view/@repo_info.path)
|
2019-04-29 20:38:05 +02:00
|
|
|
</pre>
|
2019-06-12 21:50:45 +02:00
|
|
|
}, version_info, repo_count)
|