diff options
author | SoniEx2 <endermoneymod@gmail.com> | 2020-07-23 13:15:56 -0300 |
---|---|---|
committer | SoniEx2 <endermoneymod@gmail.com> | 2020-07-23 13:15:56 -0300 |
commit | bdf5cb78b9d7daf702e0e05660580ab311473fdc (patch) | |
tree | fd5261bf6090e80a4eb146f0916b467310566aaa /ganarchy/templating/templates.py | |
parent | 6e3ac343e67adea503afef98651ea134526e0453 (diff) |
Restore functionality feature/new-config
Everything works again, as far as I can tell.
Diffstat (limited to 'ganarchy/templating/templates.py')
-rw-r--r-- | ganarchy/templating/templates.py | 5 |
1 files changed, 3 insertions, 2 deletions
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': """<!DOCTYPE html> <html lang="en"> <head> |