{# Source code of the Ubuntu-it website
 # Copyright (C) 2015  Pietro Albini <pietroalbini@ubuntu.com>
 # Copyright (C) 2020  Alessandro Viprati <vipri.alessandro@gmail.com>
 #
 # This program is free software: you can redistribute it and/or modify
 # it under the terms of the GNU Affero General Public License as published
 # by the Free Software Foundation, either version 3 of the License, or
 # (at your option) any later version.
 #
 # This program is distributed in the hope that it will be useful,
 # but WITHOUT ANY WARRANTY; witout even the implied warranty of
 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 # GNU Affero General Public License for more details.
 #
 # You should have received a copy of the GNU Affero General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 #}

{% extends "layout.html" %}

{% block title %}Download{% endblock %}

{% block content %}
    <div class="page">
        <div class="row">
            <div class="col text-center">
                <h1>Scarica Ubuntu</h1>
                <p class="intro">Entra subito nel mondo Ubuntu. Scaricalo ora!</p>
            </div>
        </div>
    </div>

    <div class="page">
        {% for name, data in distros.items() %}
            <div class="row download-index-distro background-wallpaper {{ name }}">
                <div class="col">
                    <h2>{{ data["name"] }}</h2>
                    <p>{{ data["description"] }}</p>
                </div>
                <div class="col col-center col-quarter">
                    <a class="btn" href="{{ url_for("download.landing", distro = name) }}">
                        Scaricalo ora
                    </a>
                </div>
            </div>
        {% endfor %}
    </div>
{% endblock %}
