{#- 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 (none linked: no repository line); then the pull requests tied to no repository, named by the repository in their link. A repository with a worktree shows a "worktree" mark (the path on hover, copied on click, app.js copyPath) and its one editor link opens the worktree instead of the main checkout. Expects: c (TaskCode), branch (the task's, shown on a repository whose own branch the hooks have not seen). -#} {%- macro pr_links(prs, by_repo=False) -%} {%- for pr in prs %}{% set href = pr.url|http_url %}{% if href %} {{ pr.repo_label if by_repo else (pr.label if pr.number is not none else "PR") }}{% endif %}{% endfor %} {%- endmacro %} {%- macro open_link(path, label) -%} </> {%- endmacro %}