From 41c5a9c5a601733809f15b98a3ba79db8f896518 Mon Sep 17 00:00:00 2001 From: Matthias Beyer Date: Wed, 24 Apr 2019 13:19:46 +0200 Subject: Add html templates for generating nice report websites --- etc/README.md | 13 +++++++++++++ etc/compare.html | 45 +++++++++++++++++++++++++++++++++++++++++++++ etc/problems.html | 28 ++++++++++++++++++++++++++++ etc/project.html | 36 ++++++++++++++++++++++++++++++++++++ 4 files changed, 122 insertions(+) create mode 100644 etc/README.md create mode 100644 etc/compare.html create mode 100644 etc/problems.html create mode 100644 etc/project.html diff --git a/etc/README.md b/etc/README.md new file mode 100644 index 0000000..c93152b --- /dev/null +++ b/etc/README.md @@ -0,0 +1,13 @@ +# HTML templates + +This directory contains HTML templates which can be used with the "json" output +format and a tool that can fill templates with data. +For example, this can be used with [hdlbr](https://github.com/quitoque/hdlbr) +to generate nice websites for the reported data. + +## Usage with hdlbr + +```bash +repolocli -o json ... > data.json +hdlbr data.json template.html > output.html +``` diff --git a/etc/compare.html b/etc/compare.html new file mode 100644 index 0000000..38e150e --- /dev/null +++ b/etc/compare.html @@ -0,0 +1,45 @@ + + + + + +
+ + + + + + + + + + + {{~#each . as |t|}} + + + + + + {{~/each}} + +
PackageLocal VersionExternal Versions
{{t.package_name}}{{t.local_version}} + + + + + + + + + {{~#each t.comparisons as |c|}} + + + + + {{~/each}} + +
RepoVersion
{{c.repo}}{{c.version}}
+
+
+ + diff --git a/etc/problems.html b/etc/problems.html new file mode 100644 index 0000000..bbb66ef --- /dev/null +++ b/etc/problems.html @@ -0,0 +1,28 @@ + + + + + + + + + + + + + + + + + {{~#each . as |t|}} + + + + + + + {{~/each}} + +
RepoPackageMaintainerProblem
{{t.repo}}{{t.name}}{{t.maintainer}}{{t.problem}}
+ + diff --git a/etc/project.html b/etc/project.html new file mode 100644 index 0000000..74242e7 --- /dev/null +++ b/etc/project.html @@ -0,0 +1,36 @@ + + + + + +
+

+ {{#if .}} + {{#with . as |t|}} + {{t.[0].name}} + {{/with}} + {{/if}} +

+
+ + + + + + + + + + + {{~#each . as |t|}} + + + + + + {{~/each}} + +
RepoVersionStatus
{{t.repo}}{{t.version}}{{t.status}}
+
+ + -- cgit v1.2.3