summaryrefslogtreecommitdiffstats
path: root/gitsrht/blueprints/repo.py
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2018-12-12 20:53:10 -0500
committerDrew DeVault <sir@cmpwn.com>2018-12-12 20:53:10 -0500
commitb70e717c13cbccd19f15b663821e539824218e3a (patch)
tree5aeb2b20eb46ea9a441d9819c8f2b5f3406b68e6 /gitsrht/blueprints/repo.py
parent40540e5d6088291af67fbb7f723200b2bcf8a12e (diff)
Link to tag release notes from summary page
Diffstat (limited to 'gitsrht/blueprints/repo.py')
-rw-r--r--gitsrht/blueprints/repo.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/gitsrht/blueprints/repo.py b/gitsrht/blueprints/repo.py
index e3cc6d7..f05c88b 100644
--- a/gitsrht/blueprints/repo.py
+++ b/gitsrht/blueprints/repo.py
@@ -120,7 +120,8 @@ def summary(owner, repo):
latest_tag = tags[0] if len(tags) else None
return render_template("summary.html", view="summary",
owner=owner, repo=repo, readme=readme, commits=commits,
- latest_tag=latest_tag, default_branch=default_branch)
+ latest_tag=latest_tag, default_branch=default_branch,
+ is_annotated=lambda t: isinstance(t, pygit2.Tag))
def lookup_ref(git_repo, ref, path):
ref = ref or git_repo.default_branch().name[len("refs/heads/"):]