Commit 29fca9cc authored by shadMod's avatar shadMod 💬

reformat layout and added main and bootstrap_v5 link css in head

parent e8808f81
{# Source code of the Ubuntu-it website {# Source code of the Ubuntu-it website
# Copyright (C) 2015-2018 Pietro Albini <pietroalbini@ubuntu.com> # Copyright (C) 2015-2018 Pietro Albini <pietroalbini@ubuntu.com>
# #
# This program is free software: you can redistribute it and/or modify # 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 # 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 # by the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version. # (at your option) any later version.
# #
# This program is distributed in the hope that it will be useful, # This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; witout even the implied warranty of # but WITHOUT ANY WARRANTY; witout even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details. # GNU Affero General Public License for more details.
# #
# You should have received a copy of the GNU Affero General Public License # 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/>. # along with this program. If not, see <http://www.gnu.org/licenses/>.
#} #}
{% from "macros.html" import nav_item with context %} {% from "macros.html" import nav_item with context %}
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<head> <head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>{% block title %}Senza titolo{% endblock %} - Ubuntu-it</title> <title>{% block title %}Senza titolo{% endblock %} - Ubuntu-it</title>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<link rel="shortcut icon" href="{{ url_for('static', filename='favicon.ico') }}">
<link rel="stylesheet" href="https://static.ubuntu-it.org/fonts/ubuntu/include.min.css"> <link rel="stylesheet" href="https://static.ubuntu-it.org/fonts/ubuntu/include.min.css">
<link rel="stylesheet" href="https://static.ubuntu-it.org/themes/italy/theme.min.css"> <link rel="stylesheet" href="https://static.ubuntu-it.org/themes/italy/theme.min.css">
<link rel="stylesheet" href="{{ url_for("static", filename="website.css") }}"> <link rel="stylesheet" href="{{ url_for('static', filename='assets/vendor/bootstrap_v5.css') }}">
<link rel="shortcut icon" href="{{ url_for("static", filename="favicon.ico") }}"> <link rel="stylesheet" href="{{ url_for('static', filename='assets/libs/main.css') }}">
{% block extra_header %}{% endblock %} {% block extra_header %}{% endblock %}
</head>
<body {% block extra_body %}{% endblock %}> </head>
<div class="cookie-policy hidden"> <body {% block extra_body %}{% endblock %}>
<div class="cookie-policy hidden">
<div class="container"> <div class="container">
<span> <span>
Questo sito utilizza i cookie per offrirti un'esperienza Questo sito utilizza i cookie per offrirti un'esperienza
migliore. Continuando la navigazione ne accetti l'uso. migliore. Continuando la navigazione ne accetti l'uso.
</span> </span>
<a href="{{ url_for("pages.cookies") }}" id="ubuntuit-cookiepolicy-hide">OK</a> <a href="{{ url_for('pages.cookies') }}" id="ubuntuit-cookiepolicy-hide">
<a href="#">Maggiori informazioni</a> OK
</div> </a>
<a href="#">
Maggiori informazioni
</a>
</div> </div>
</div>
{% if g.auth_name %} {% if g.auth_name %}
<nav class="sites-list"> <nav class="sites-list">
<div class="container"> <div class="container">
<ul class="left"> <ul class="left">
{% if permission("auth.sessions.manage") %} {% if permission("auth.sessions.manage") %}
<li><a href="{{ url_for("auth.sessions_list") }}"> <li>
<a href="{{ url_for('auth.sessions_list') }}">
Sessioni attive: {{ g.auth_sessions_count }} Sessioni attive: {{ g.auth_sessions_count }}
</a></li> </a>
</li>
{% endif %} {% endif %}
{% if permission("actions.show") %} {% if permission("actions.show") %}
<li><a href="{{ url_for("actions.show") }}"> <li>
<a href="{{ url_for('actions.show') }}">
Azioni recenti Azioni recenti
</a></li> </a>
</li>
{% endif %} {% endif %}
</ul> </ul>
<ul class="right"> <ul class="right">
{% if permission("auth.sessions.own") %} {% if permission("auth.sessions.own") %}
<li><a href="{{ url_for("auth.sessions_show", id=g.auth_id) }}"> <li>
<a href="{{ url_for('auth.sessions_show', id=g.auth_id) }}">
{{ g.auth_name }} {{ g.auth_name }}
</a></li> </a>
</li>
{% endif %} {% endif %}
{% if permission("auth.logout") %} {% if permission("auth.logout") %}
<li><a href="{{ url_for("auth.logout") }}">Esci</a></li> <li>
<a href="{{ url_for('auth.logout') }}">
Esci
</a>
</li>
{% endif %} {% endif %}
</ul> </ul>
</div> </div>
</nav> </nav>
{% endif %} {% endif %}
<nav class="sites-list"> <nav class="sites-list">
<div class="container"> <div class="container">
<ul> <ul>
<li><a href="{{ url_for('pages.index') }}" class="active">Sito web</a></li> <li>
<li><a href="https://wiki.ubuntu-it.org">Wiki</a></li> <a href="{{ url_for('pages.index') }}" class="active">
<li><a href="https://forum.ubuntu-it.org">Forum</a></li> Sito web
<li><a href="https://chiedi.ubuntu-it.org">Chiedi</a></li> </a>
<li><a href="https://chat.ubuntu-it.org">Chat</a></li> </li>
<li><a href="https://cerca.ubuntu-it.org">Cerca</a></li> <li>
<li><a href="https://planet.ubuntu-it.org">Planet</a></li> <a href="https://wiki.ubuntu-it.org">
Wiki
</a>
</li>
<li>
<a href="https://forum.ubuntu-it.org">
Forum
</a>
</li>
<li>
<a href="https://chiedi.ubuntu-it.org">
Chiedi
</a>
</li>
<li>
<a href="https://chat.ubuntu-it.org">
Chat
</a>
</li>
<li>
<a href="https://cerca.ubuntu-it.org">
Cerca
</a>
</li>
<li>
<a href="https://planet.ubuntu-it.org">
Planet
</a>
</li>
</ul> </ul>
<ul class="right"> <ul class="right">
<li><a href="https://www.facebook.com/ubuntu.it">Facebook</a></li> <li>
<li><a href="https://twitter.com/ubuntuit">Twitter</a></li> <a href="https://www.facebook.com/ubuntu.it">
Facebook
<li><a href="https://www.youtube.com/ubuntuitpromozione">YouTube</a></li> </a>
<li><a href="https://telegram.me/ubuntuit">Telegram</a></li> </li>
<li>
<a href="https://twitter.com/ubuntuit">
Twitter
</a>
</li>
<li>
<a href="https://www.youtube.com/ubuntuitpromozione">
YouTube
</a>
</li>
<li>
<a href="https://telegram.me/ubuntuit">
Telegram
</a>
</li>
</ul> </ul>
</div> </div>
</nav> </nav>
{% for navbar in _navbars %} {% for navbar in _navbars %}
<nav {%- if loop.index == 1 %} class="main-navbar"{% endif %}> <nav {%- if loop.index== 1 %} class="main-navbar" {% endif %}>
<div class="container"> <div class="container">
<ul> <ul>
{% if loop.index == 1 %} {% if loop.index == 1 %}
<li class="site-name"><a href="{{ url_for("pages.index") }}">ubuntu-it</a></li> <li class="site-name">
<a href="{{ url_for('pages.index') }}">
ubuntu-it
</a>
</li>
{% endif -%} {% endif -%}
{%- for name, url, active in navbar %} {%- for name, url, active in navbar %}
<li> <li>
<a {%- if active %} class="active"{% endif %} href="{{ url }}">{{ name }}</a> <a {%- if active %} class="active" {% endif %} href="{{ url }}">
{{ name }}
</a>
</li> </li>
{% endfor %} {% endfor %}
</ul> </ul>
</div> </div>
</nav> </nav>
{% endfor %} {% endfor %}
<div class="container"> <div class="container">
{% with messages = get_flashed_messages(with_categories=True) %} {% with messages = get_flashed_messages(with_categories=True) %}
{% if messages %} {% if messages %}
{% for category, message in messages %} {% for category, message in messages %}
<div class="alert {% if category != "message" %}{{ category }}{% else %}info{% endif %}"> <div class="alert {% if category != 'message' %}{{ category }}{% else %}info{% endif %}">
{{ message }} {{ message }}
<span class="close">&times;</span> <span class="close">&times;</span>
</div> </div>
...@@ -129,37 +194,54 @@ ...@@ -129,37 +194,54 @@
<footer> <footer>
<p> <p>
Ubuntu e Canonical sono marchi registrati da Canonical Ubuntu e Canonical sono marchi registrati da Canonical Ltd.
Ltd.
</p> </p>
<p> <p>
Sito web realizzato dal Gruppo Web di Ubuntu-it, con Sito web realizzato dal Gruppo Web di Ubuntu-it, con
<a href="https://www.python.org/">Python</a>, <a href="https://www.python.org/">
<a href="https://www.palletsproject.com/p/flask/">Flask</a> e Python
<a href="https://www.sqlite.org/">SQLite</a>. </a>,
<a href="https://www.palletsproject.com/p/flask/">
Flask
</a>
e
<a href="https://www.sqlite.org/">
SQLite
</a>.
</p> </p>
<ul> <ul>
<li><a href="{{ url_for("pages.cookies") }}"> <li>
<a href="{{ url_for('pages.cookies') }}">
Informativa sui cookie Informativa sui cookie
</a></li> </a>
<li><a href="https://code.ubuntu-it.org/ubuntu-it-web/www/issues"> </li>
<li>
<a href="https://code.ubuntu-it.org/ubuntu-it-web/www/issues">
Segnala un problema Segnala un problema
</a></li> </a>
<li><a href="https://code.ubuntu-it.org/ubuntu-it-web/www"> </li>
<li>
<a href="https://code.ubuntu-it.org/ubuntu-it-web/www">
Codice sorgente Codice sorgente
</a></li> </a>
<li><a href="https://wiki.ubuntu-it.org/GruppoWeb"> </li>
<li>
<a href="https://wiki.ubuntu-it.org/GruppoWeb">
Collabora con noi Collabora con noi
</a></li> </a>
</li>
{% if not g.auth_name %} {% if not g.auth_name %}
<li><a href="{{ url_for("auth.login") }}"> <li>
<a href="{{ url_for('auth.login') }}">
Accedi Accedi
</a></li> </a>
</li>
{% endif %} {% endif %}
</ul> </ul>
</footer> </footer>
</div> </div>
<script type="text/javascript" src="https://static.ubuntu-it.org/themes/italy/theme.min.js"></script>
<script type="text/javascript" src="https://static.ubuntu-it.org/themes/italy/theme.min.js"></script> </body>
</body>
</html> </html>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment