$def with (project, repo, package_releases)
$var title: $project
$if repo.exists():
git clone https://$(tx.request.headers["x-domain"])/code/$(project).git
Files
$for file in repo.files:
- $file
Commit Log
$for commit in repo.log.values():
$ author_url = commit['author_email']
$if "@" in author_url:
$ author_url = f"mailto:{author_url}"
$else:
$ author_url = f"https://{author_url}"
- $commit["author_name"]
$commit["message"]
$commit["hash"][:7]
$commit["timestamp"].diff_for_humans()
Releases
$for release in package_releases:
- $release