Commit fbad5bdc6cc66beeaa1a8802446669830f17d822 Parent: 7260b794051d413c4975cd91554e4b72facb11fa Author: mcol <mcol@posteo.net> Date: 2021-11-26 01:47:16 +0000 Committer: mcol <mcol@posteo.net> Committed: 2021-11-26 01:47:16 +0000 Add test for repo scope
test/templates/repo/index.html Modified
@@ -1,6 +1,17 @@ {% extends "../title.html.include" -%} -{%- block title -%}{{ repo.name }}{%- endblock -%} +{%- block title -%}{{ name }}{%- endblock -%} {% block body %} -repository +scope: repository +host: {{ host }} +repos: {{ repos }} +name: {{ name }} +description: {{ description }} +commits: (skipped) +tree: (skipped) +tags: (skipped) +branches: {{ branches }} + branches[0].name: {{ branches[0].name }} +readme.path: {{ readme.path }} +license.path: {{ license.path }} {% endblock %}
test/expected/gitserve/index.html Added
@@ -0,0 +1,14 @@ +gitserve +scope: repository +host: https://github.com/m-col/gitserve +repos: gitserve +name: gitserve +description: 🐙 Templated web page generator for your git repositories + +commits: (skipped) +tree: (skipped) +tags: (skipped) +branches: master + branches[0].name: master +readme.path: README.rst +license.path: LICENSE