$def with (project, issues, mentions)
$var breadcrumbs = ("projects", "Projects", project, f"{project}")
$var title: Issues
$for issue in issues:
$issue
Elsewhere
$for mention in mentions:
$ data = mention["data"]
$if name := data.get("name", None):
$name
$if data:
$ a = data["author"]
$ comment_type = data["comment_type"][0]
$if comment_type == "like":
$emoji.emojize(":red_heart:")
$if content := data.get("content"):
$:content
$ published = data["published"][0]
Opened
$if data:
by $a.get("name", a["url"]),
$if comment := data.get("comment"):
$ comment_count = len(comment)
$if comment_count:
💬 $comment_count comment$("s" if comment_count > 1 else "")