From eb0ee4b31de58e0eb4a8d474b517e3e011047e48 Mon Sep 17 00:00:00 2001 From: Valentin Brandl Date: Sat, 4 May 2019 15:38:00 +0200 Subject: [PATCH] Add generator and result page --- templates/generate.rs.html | 23 +++++++++++++++++++++++ templates/index.rs.html | 15 +++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 templates/generate.rs.html diff --git a/templates/generate.rs.html b/templates/generate.rs.html new file mode 100644 index 0000000..86b2c03 --- /dev/null +++ b/templates/generate.rs.html @@ -0,0 +1,23 @@ +@use super::base; +@use crate::VersionInfo; + +@(version_info: VersionInfo, domain: &str, url: &str, service: &str, path: &str) + +@:base("Hits-of-Code Badges", "Badge Generator", { + +

+Here is the markdown for the badge for @url/@path +

+ +
+[![Hits-of-Code](https://@domain/@service/@path)](https://@domain/view/@service/@path)
+
+ +

+It will be rendered like this +

+ +
+example badge
+
+}, version_info) diff --git a/templates/index.rs.html b/templates/index.rs.html index ec004cc..adbcd91 100644 --- a/templates/index.rs.html +++ b/templates/index.rs.html @@ -45,6 +45,21 @@ would render this badge: alt="example badge" /> +

Badge Generator

+ +
+ + + + + + +
+

Source Code