{% extends "base.html" %}

{% block title %}tags - {{ repo }}{% endblock %}
{% block og_title %}tags - {{ repo }}{% endblock %}
{% block og_description %}tags in {{ repo }}{% endblock %}

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

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

{% if tags.is_empty() %}
<p>No tags.</p>
{% else %}
<div class="tag-list">
  {% for tag in tags %}
  <a href="{{ crate::base_url() }}/{{ repo }}/tags/{{ tag.name }}" class="tag-row">
    <span class="tag-name">{{ tag.name }}</span>
    <span class="tag-date">{{ tag.date }}</span>
  </a>
  {% endfor %}
</div>
{% endif %}
{% endblock %}
