{#- The Code row of a task: the repositories it touches with the task's branch, its pull requests and an "Open in VS Code" link each; with none linked, all of the project's repositories in one folded line; then the pull requests tied to no repository. Expects: c (TaskCode), branch (the task's, shown per repository; None on the card, which shows it once). -#} {%- macro pr_links(prs) -%} {%- for pr in prs %}{% set href = pr.url|http_url %}{% if href %} {{ pr.label if pr.number is not none else "PR" }}{% endif %}{% endfor %} {%- endmacro %} {%- macro open_link(r) -%} Open in VS Code {%- endmacro %}