diff --git a/src/wireviz/templates/titleblock.html b/src/wireviz/templates/titleblock.html index e3a591d..2c671d6 100644 --- a/src/wireviz/templates/titleblock.html +++ b/src/wireviz/templates/titleblock.html @@ -1,13 +1,80 @@ + {% macro revision(row) -%} + {% set index = 8 - row %} {% if row == 9 %} Rev Date Name Changelog - {% elif revisions|length >= row %} - {% set revision = revisions[row-1] %} + {% elif revisions|length > index %} + {% set revision = revisions[index] %} {{ revision.rev }} {{ revision.date }} {{ revision.name }} @@ -39,7 +106,6 @@ {% endif %} {%- endmacro %} -