{% extends "base.html" %}
{% block body %}
<div class="container">
    <div class="row">
        <h2 class="display-2">{{ _('Pywb Wayback Machine') }}</h2>
        <p class="lead">{{ _('This archive contains the following collections:') }}</p>
    </div>
    <div class="row">
        <ul>
            {% for route in routes %}
                <li>
                    <a href="{{ env['pywb.app_prefix'] + ('/' + env.pywb_lang if env.pywb_lang else '') + '/' + route }}">{{ '/' + route }}</a>
                    {% if all_metadata and all_metadata[route] %}
                        ({{ all_metadata[route].title }})
                    {% endif %}
                </li>
            {% endfor %}
        </ul>
    </div>
</div>
{% endblock %}
