From bdf5cb78b9d7daf702e0e05660580ab311473fdc Mon Sep 17 00:00:00 2001 From: SoniEx2 Date: Thu, 23 Jul 2020 13:15:56 -0300 Subject: Restore functionality Everything works again, as far as I can tell. --- ganarchy/templating/templates.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'ganarchy/templating') diff --git a/ganarchy/templating/templates.py b/ganarchy/templating/templates.py index 213a7fa..1435940 100644 --- a/ganarchy/templating/templates.py +++ b/ganarchy/templating/templates.py @@ -70,11 +70,12 @@ def get_template_loader(): {%- for project in database.list_projects() %} [projects.{{project}}] {%- for repo_url, branch, _head_commit in database.list_repobranches(project) %} -"{{repo_url|tomle}}".{% if branch == "HEAD" %}HEAD{% else %}"{{branch|tomle}}"{% endif %} = { active=true } +"{{repo_url|tomle}}".{% if not branch %}HEAD{% else %}"{{branch|tomle}}"{% endif %} = { active=true } {%- endfor %} {% endfor -%} """, - ## project.html FIXME + ## project.html + # FIXME convert to project.title/etc instead of project_title/etc. 'project.html': """ -- cgit 1.4.1