hoc/templates/generate.rs.html

24 lines
575 B
HTML
Raw Normal View History

2019-05-04 15:38:00 +02:00
@use super::base;
2019-05-14 01:11:39 +02:00
@use crate::statics::VersionInfo;
2019-05-04 15:38:00 +02:00
2020-11-24 19:06:42 +01:00
@(version_info: VersionInfo, repo_count: usize, base_url: &str, url: &str, service: &str, path: &str)
2019-05-04 15:38:00 +02:00
@:base("Hits-of-Code Badges", "Badge Generator", {
<p>
Here is the markdown for the badge for <a href="https://@url/@path">@url/@path</a>
</p>
<pre>
2020-11-24 19:13:08 +01:00
[![Hits-of-Code](@base_url/@service/@path)](@base_url/@service/@path/view)
2019-05-04 15:38:00 +02:00
</pre>
<p>
It will be rendered like this
</p>
<pre>
2020-11-24 19:13:08 +01:00
<a href="@base_url/@service/@path/view"><img src="@base_url/@service/@path" alt="example badge" /></a>
2019-05-04 15:38:00 +02:00
</pre>
2019-06-12 21:50:45 +02:00
}, version_info, repo_count)