diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/badge.svg.jinja | 12 |
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> |