{% extends "repo.html" %} {% import "utils.html" as utils with context %} {% block title %} {{repo.owner.canonical_name}}/{{repo.name}} refs - {{cfg("sr.ht", "site-name")}} git {% endblock %} {% block repohead %} {% endblock %} {% block tabs_extra %}
  • {% endblock %} {% block content %}
    {% for t in tags %} {% set ref = t[0].decode("utf-8", "replace") %} {% set tag = t[1] %} {% set sig_fmt = t[2] %} {% if isinstance(tag, pygit2.Commit) %} {% set commit = tag %} {% else %} {% set commit = git_repo.get(tag.target) %} {% endif %}

    {% if isinstance(tag, pygit2.Commit) %} {% set refname = commit.id.hex %} {% set author = commit.author %} {{ref[len("refs/tags/"):]}} {% else %} {% set refname = tag.raw_name %} {% set author = tag.tagger %} {{refname.decode("utf-8", "replace")}} {% endif %} {{signature_time(author) | date}} .tar.gz {{icon("caret-right")}} {% if sig_fmt %} .asc {{icon("caret-right")}} {% endif %} browse {{icon("caret-right")}} log {{icon("caret-right")}}

    {% if tag.message %}
    {{strip_pgp_signature(tag.message)}}
    {% endif %}
    {% endfor %} {{ pagination() }}

    Branches

    {% for branch in branches %} {% set name = branch[0] %} {% set commit = branch[2] %} {% set branch = branch[1] %}
    {{name.decode("utf-8", "replace")}} {{ utils.commit_event(repo, commit, skip_body=True) }}
    {% endfor %}
    {% endblock %}