From 7591c0f54fa3272df0f6b7057f6096bb513e9328 Mon Sep 17 00:00:00 2001 From: Melody Horn Date: Mon, 12 Apr 2021 12:12:16 -0600 Subject: give sections a separate thing --- templates/badge.svg.jinja | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'templates/badge.svg.jinja') diff --git a/templates/badge.svg.jinja b/templates/badge.svg.jinja index 8143cff..02ba3db 100644 --- a/templates/badge.svg.jinja +++ b/templates/badge.svg.jinja @@ -5,7 +5,7 @@ {%- set ROWS = 1 + versions|length -%} {%- set OUTER_MARGIN = 5 -%} {%- set FONT_WIDENESS = 0.5 -%} -{%- set LONGEST_REPO = versions.keys()|map('length')|max -%} +{%- set LONGEST_REPO = versions.keys()|map(attribute='full_repo_name')|map('length')|max -%} {%- set LONGEST_VERSION = versions.values()|map('string')|map('length')|max -%} {%- set VERSION_X = OUTER_MARGIN + LONGEST_REPO * FONT_WIDENESS * FONT_SIZE -%} {%- set VERSION_WIDTH = OUTER_MARGIN + LONGEST_VERSION * FONT_WIDENESS * FONT_SIZE -%} @@ -21,7 +21,7 @@ {{ end_row() }} {% for repo, version in versions.items() %} - {{ repo }} + {{ repo.full_repo_name }} {{ version }}{{ end_row() }} -- cgit v1.2.3