24 lines
950 B
HTML
24 lines
950 B
HTML
@use super::base;
|
|
@use crate::{statics::VersionInfo, template::RepoGeneratorInfo};
|
|
|
|
@(version_info: VersionInfo, repo_count: usize, base_url: &str, repo_info: &RepoGeneratorInfo)
|
|
|
|
@:base("Hits-of-Code Badges", "Badge Generator", {
|
|
|
|
<p>
|
|
Here is the markdown for the badge for <a href="https://@repo_info.service.url()/@repo_info.user/@repo_info.repo">@repo_info.user/@repo_info.repo</a>
|
|
</p>
|
|
|
|
<pre>
|
|
[![Hits-of-Code](@base_url/@repo_info.service.service()/@repo_info.user/@repo_info.repo?branch=@repo_info.branch)](@base_url/@repo_info.service.service()/@repo_info.user/@repo_info.repo/view?branch=@repo_info.branch)
|
|
</pre>
|
|
|
|
<p>
|
|
It will be rendered like this
|
|
</p>
|
|
|
|
<pre>
|
|
<a href="@base_url/@repo_info.service.service()/@repo_info.user/@repo_info.repo/view?branch=@repo_info.branch"><img src="@base_url/@repo_info.service.service()/@repo_info.user/@repo_info.repo?branch=@repo_info.branch" alt="example badge" /></a>
|
|
</pre>
|
|
}, version_info, repo_count)
|