{% extends "layout_repo.html" %} {% block page_title %}Branches · {% endblock %} {% block content %} {% let base = r.base() %}

Branches

{{ crate::web::fmt::icon("tag")|safe }} Tags
{% if rows.is_empty() %}
{{ crate::web::fmt::icon("git-branch")|safe }}

No branches yet

Push to this repository to create a branch.

{% else %}
Branch
{% if rows.len() > 1 %}
BehindAhead
{% endif %}
{% for row in rows %}
{{ row.branch.name }} {% if row.is_default %}Default{% endif %}
Updated by {{ row.branch.commit.author_name }}
{% if row.is_default %} {% else %}
{{ row.branch.behind }} {{ row.branch.ahead }}
{% endif %}
{% if let Some(n) = row.pull %} {{ crate::web::fmt::icon("git-pull-request")|safe }} #{{ n }} {% else if !row.is_default && row.branch.ahead > 0 %} New pull request {% endif %} {% if r.access.write && !row.is_default %}
{% endif %}
{% endfor %}
{% endif %} {% endblock %}