{% 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 head %} {% endblock %} {% block tabs_extra %}
  • {% endblock %} {% block content %}
    {% for tag in tags %} {% set ref = tag[0] %} {% set tag = tag[1] %} {% if isinstance(tag, pygit2.Commit) %} {% set commit = tag %} {% else %} {% set commit = git_repo.get(tag.target) %} {% endif %}

    {% if isinstance(tag, pygit2.Commit) %} {{ref[len("refs/tags/"):]}} {% else %} {{tag.name}} {% endif %} {{commit_time(tag) | date}} .tar.gz {{icon("caret-right")}} browse {{icon("caret-right")}} log {{icon("caret-right")}}

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

    Branches

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