diff --git a/pagure/lib/git.py b/pagure/lib/git.py index f287a4c..92f863f 100644 --- a/pagure/lib/git.py +++ b/pagure/lib/git.py @@ -1256,7 +1256,7 @@ def get_git_tags_objects(project): if isinstance(theobject, pygit2.Tag): commit_time = theobject.get_object().commit_time objecttype = "tag" - elif isinstance(reference, pygit2.Commit): + elif isinstance(theobject, pygit2.Commit): commit_time = theobject.commit_time objecttype = "commit" diff --git a/pagure/templates/releases.html b/pagure/templates/releases.html index 7d96d75..16b5cf4 100644 --- a/pagure/templates/releases.html +++ b/pagure/templates/releases.html @@ -36,12 +36,12 @@ -
{{tag['date'] }} +
{{tag['date'] | humanize}} {{ tag['object'].oid | short }}
{% if tag['objecttype'] == "tag" %} {% if tag['object'].message %} - {{tag['name']}} + {{tag['tagname']}} {{ tag['object'].message.split('\n')[0] }} {% set detailtext = tag['object'].message.partition('\n')[2] %} {% if detailtext != "" %} @@ -51,7 +51,7 @@ {% endif %} {% endif %} {% else %} - {{tag['name']}} + {{tag['tagname']}} {% endif %}
{% endfor %}