aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorMelody Horn <melody@boringcactus.com>2021-03-29 15:55:43 -0600
committerMelody Horn <melody@boringcactus.com>2021-03-29 15:55:43 -0600
commit7fb9136bf70951a3da3acfedc3d5cff12e7dc12c (patch)
treedca38efd9801bab4bab7416f03c3d77a3646e329 /templates
downloadwhere-packaged-7fb9136bf70951a3da3acfedc3d5cff12e7dc12c.tar.gz
where-packaged-7fb9136bf70951a3da3acfedc3d5cff12e7dc12c.zip
throw together a very rough draft
Diffstat (limited to 'templates')
-rw-r--r--templates/badge.svg.jinja12
1 files changed, 12 insertions, 0 deletions
diff --git a/templates/badge.svg.jinja b/templates/badge.svg.jinja
new file mode 100644
index 0000000..64117b8
--- /dev/null
+++ b/templates/badge.svg.jinja
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<svg width="690" height="420" xmlns="http://www.w3.org/2000/svg">
+ {% set ns = namespace(y = 20) %}
+ <text x="0" y="{{ ns.y }}{% set ns.y = ns.y + 20 %}">Packaging Status</text>
+ {% for family, family_contents in versions.items() %}
+ <text x="10" y="{{ ns.y }}{% set ns.y = ns.y + 20 %}">{{ family }}</text>
+ {% for repo, version in family_contents.items() %}
+ <text x="20" y="{{ ns.y }}">{{ repo }}</text>
+ <text x="300" y="{{ ns.y }}{% set ns.y = ns.y + 20 %}">{{ version }}</text>
+ {% endfor %}
+ {% endfor %}
+</svg>