{% extends "base.html" %}

{% block title %}branches — {{ repo }}{% endblock %}

{% block breadcrumbs %}
<ul>
  <li><a href="/">{{ crate::hostname() }}</a></li>
  <li><a href="/{{ repo }}">{{ repo }}</a></li>
  <li>branches</li>
</ul>
{% endblock %}

{% block content %}
<h1>branches</h1>

{% if branches.is_empty() %}
<p>No branches.</p>
{% else %}
<div class="branch-list">
  {% for branch in branches %}
  <a href="/{{ repo }}/branches/{{ branch.name }}" class="branch-row">
    <span class="branch-name">{{ branch.name }}</span>
    <span class="branch-date">{% if branch.is_default %}<span class="branch-default">default</span>{% endif %}{{ branch.date }}</span>
  </a>
  {% endfor %}
</div>
{% endif %}
{% endblock %}
