From bfa3622c23c4bc574e6e51bdd8c196604ebcd172 Mon Sep 17 00:00:00 2001 From: SoniEx2 Date: Sun, 6 Feb 2022 01:09:01 -0300 Subject: Attempt to add pinned repos --- ganarchy/templating/templates.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'ganarchy/templating/templates.py') diff --git a/ganarchy/templating/templates.py b/ganarchy/templating/templates.py index 1e9c074..1574d7c 100644 --- a/ganarchy/templating/templates.py +++ b/ganarchy/templating/templates.py @@ -70,7 +70,7 @@ def get_template_loader(): {%- for project in database.list_projects() %} [projects.{{project}}] -{%- for repo_url, branch, _head_commit in database.list_repobranches(project) %} +{%- for repo_url, branch, _head_commit, _pinned in database.list_repobranches(project) %} {%- if database.should_repo_federate(project, repo_url, branch) %} "{{repo_url|tomle}}".{% if not branch %}HEAD{% else %}"{{branch|tomle}}"{% endif %} = { active=true } {%- endif %} @@ -108,8 +108,15 @@ def get_template_loader():

{{ project_title|e }}

Tracking {{ project_commit }}

{{ project_body|e|replace("\n\n", "

") }}

+

Pinned repos

+

Additional repos

+ -- cgit 1.4.1