{% extends "base.html" %}
{% block title %}{{ super() }} :: {{ distro.name }}{% endblock %}
{% block content %}
<div class="breadcrumbs"><a href="{{ url_root }}">Home</a> :: {{ distro.name }}</div>

<div class="distro-block distro-metadata">
  <h4>Metadata</h4>
  <dl>
    <dt>Distro Index Owner:</dt>
    <dd>{{ distro.owner }}</dd>
    <dt>Home Page:</dt>
    <dd><a href="{{ distro.home_page }}">{{ distro.home_page }}</a></dd>
  </dl>
</div>

<h1>{{ distro.name }}</h1>
<div class="distro-block distro-files">
  <h4>Files</h4>
  <ul class="file-listing">
    {% for file in files %}
    <li><a href="{{ file.url }}">{{ file.filename }}</a></li>
    {% else %}
    <li class="empty">no files</li>
    {% endfor %}
  </ul>
</div>

<div class="distro-block distro-indexes">
  <h4>Indexes</h4>
  <ul class="index-listing">
    {% for index in indexes %}
    <li><a href="{{ index.url }}">{{ index.indexname }}</a></li>
    {% else %}
    <li class="empty">no indexes</li>
    {% endfor %}
  </ul>
</div>

<p class="distro-summary">{{ distro.summary }}</p>
<p class="distro-description">{{ rst(distro.description) }}</p>
{% endblock %}
