{#
# Source code of the Ubuntu-it website
# Copyright (C) 2015 Pietro Albini <pietroalbini@ubuntu.com>
# Copyright (C) 2020 Alessandro Viprati <vipri.alessandro@gmail.com>
# Copyright (C) 2023 shadMod
#
# 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; without 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 m-auto">
		<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 bg-white">
	{% for distro, data in distros.items() %}
	{% with data=data["info"] %}
	<div class="row m-auto download-index-distro background-wallpaper {{ data.name.lower().replace(' ', '-') }}">
		<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=distro) }}">
				Scaricalo ora
			</a>
		</div>
	</div>
	{% endwith %}
	{% endfor %}
</div>
{% endblock %}
