{#
# Source code of the Ubuntu-it website
# Copyright (C) 2023 shadMod <m.allegro@shadmod.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 %}
News - detail
{% endblock %}

{% block content %}
<div class="page bg-transparent shadow-none">
	{% with news_split = news.nr_news.split('/') %}
	{% with filename = news_split[0], year = news_split[1] %}
	<div class="row my-20 shadow-square">
		<div class="col">
			<div class="w-100 d-inline-block align-i-center">
				<small class="btn-news float-end">
					<strong>
						Newsletter
					</strong>
				</small>
				<img src="{{ url_for('static', filename='images/news/logo_new_newsletter.png') }}"
					 class="float-start me-20">
				<h3>
					<a href="{{ url_for('news.detail', year=year, filename=filename) }}"
					   class="arrow-hover text-dark underline-10">
						Newsletter Italiana #Ubuntu - {{ news.title }}
					</a>
				</h3>
				<small>
					Inviato da
					<a href="mailto:{{ news.mail|safe }}">
						{{ news.author|safe }}
					</a>
					il {{ news.last_edit }}
				</small>
			</div>

			<p>
				È disponibile la newsletter N° {{ news.nr_news }} della comunità di ubuntu-it. In questo
				numero:
			</p>

			{{ news.html|safe }}

			<p>
				Puoi
				<a href="http://wiki.ubuntu-it.org/NewsletterItaliana/{{ news.title }}">
					leggere direttamente la newsletter
				</a>
				oppure
				<a href="https://wiki.ubuntu-it.org/NewsletterItaliana/Archivio/Pdf{{ year }}?action=AttachFile&do=view&target=Newsletter+Ubuntu-it+{{ filename }}.{{ year }}.pdf">
					scaricarla in formato pdf</a>.
				<br/>
				Se hai perso i numeri precedenti, puoi trovarli nell'
				<a href="https://wiki.ubuntu-it.org/NewsletterItaliana/Archivio">
					archivio</a>!
			</p>
			<small>
				Per ricevere la newsletter ogni settimana nella tua casella di posta elettronica, iscriviti alla lista
				<a href="http://liste.ubuntu-it.org/cgi-bin/mailman/listinfo/newsletter-italiana">
					newsletter-italiana</a>.
			</small>
		</div>
	</div>
	{% endwith %}
	{% endwith %}
	<div class="row my-20 shadow-square">
		<div class="col">
			<div id="disqus_thread"></div>
		</div>
	</div>
</div>
{% endblock %}

{% block extra_js %}
<script>
	(function() {
			var d = document, s = d.createElement('script');
			s.src = 'https://ubuntuit.disqus.com/embed.js';
			s.setAttribute('data-timestamp', +new Date());
			(d.head || d.body).appendChild(s);
		}
	)();
</script>
<noscript>
	Please enable JavaScript to view the comments
</noscript>

<script id="dsq-count-scr" src="//ubuntuittest.disqus.com/count.js" async></script>
{% endblock %}
