Commit 9f089b14 authored by shadMod's avatar shadMod 💬

quick beautify

parent e2f97cd1
{# Source code of the Ubuntu-it website
# Copyright (C) 2018 Pietro Albini <pietroalbini@ubuntu.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/>.
#}
{#
# Source code of the Ubuntu-it website
# Copyright (C) 2018 Pietro Albini <pietroalbini@ubuntu.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 %}Accesso negato{% endblock %}
{% block title %}
Accesso negato
{% endblock %}
{% block content %}
<div class="page">
<div class="row">
<div class="col">
<h1>Accesso negato</h1>
{% if g.auth_id %}
<p>
Il tuo gruppo non dispone dei permessi necessari per
visualizzare questa pagina.
</p>
{% else %}
<p>
Questa pagina è riservata ai membri di Ubuntu-it con
adeguati permessi. <a href="{{ url_for("auth.login") }}">
Effettua l'accesso</a> per visualizzarla.
</p>
{% endif %}
</div>
</div>
</div>
<div class="page">
<div class="row">
<div class="col">
<h1>
Accesso negato
</h1>
{% if g.auth_id %}
<p>
Il tuo gruppo non dispone dei permessi necessari per
visualizzare questa pagina.
</p>
{% else %}
<p>
Questa pagina è riservata ai membri di Ubuntu-it con adeguati permessi.
<a href="{{ url_for('auth.login') }}">
Effettua l'accesso
</a>
per visualizzarla.
</p>
{% endif %}
</div>
</div>
</div>
{% endblock %}
{# Source code of the Ubuntu-it website
# Copyright (C) 2016 Pietro Albini <pietroalbini@ubuntu.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/>.
#}
{#
# Source code of the Ubuntu-it website
# Copyright (C) 2016 Pietro Albini <pietroalbini@ubuntu.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 %} Pagina non trovata {% endblock %}
{% block title %}
Pagina non trovata
{% endblock %}
{% block content %}
<div class="page">
<div class="row">
<div class="col">
<h1 class="text-center">Questa pagina non esiste</h1>
</div>
</div>
<div class="row">
<div class="col">
<p>
Beh, ovviamente <i>questa</i> pagina esiste. Ma la pagina che hai
richiesto non esiste. Infatti, questa pagina esiste solo per dirti
che la pagina che stai cercando non esiste.
</p>
<p>
Se questa pagina esisteva in passato e non la trovi più
<a href="https://forum.ubuntu-it.org/viewforum.php?f=45&sid=855a03444972c626fb2d486b42d05469">
segnalacelo
</a> che provvederemo a sistemare il prima possibile!
</p>
</div>
</div>
</div>
<div class="page">
<div class="row">
<div class="col">
<h1 class="text-center">
Questa pagina non esiste
</h1>
</div>
</div>
<div class="row">
<div class="col">
<p>
Beh, ovviamente
<i>
questa
</i>
pagina esiste. Ma la pagina che hai richiesto non esiste. Infatti, questa pagina esiste solo per dirti
che la pagina che stai cercando non esiste.
</p>
<p>
Se questa pagina esisteva in passato e non la trovi più
<a href="https://forum.ubuntu-it.org/viewforum.php?f=45&sid=855a03444972c626fb2d486b42d05469">
segnalacelo
</a>
che provvederemo a sistemare il prima possibile!
</p>
</div>
</div>
</div>
{% endblock %}
......@@ -7,7 +7,7 @@
# (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
# 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.
#
......
{# Source code of the Ubuntu-it website
# Copyright (C) 2018 Pietro Albini <pietroalbini@ubuntu.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/>.
#}
{#
# Source code of the Ubuntu-it website
# Copyright (C) 2018 Pietro Albini <pietroalbini@ubuntu.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" %}
{% from "actions/macros.html" import render_actions with context %}
{% block title %}Azioni recenti{% endblock %}
{% block title %}
Azioni recenti
{% endblock %}
{% block content %}
<div class="page">
<div class="row">
<div class="col">
<h1>Azioni recenti</h1>
{{ render_actions(actions) }}
</div>
</div>
</div>
<div class="page">
<div class="row">
<div class="col">
<h1>
Azioni recenti
</h1>
{{ render_actions(actions) }}
</div>
</div>
</div>
{% endblock %}
{# Source code of the Ubuntu-it website
# Copyright (C) 2018 Pietro Albini <pietroalbini@ubuntu.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/>.
#}
{#
# Source code of the Ubuntu-it website
# Copyright (C) 2018 Pietro Albini <pietroalbini@ubuntu.com>
# Copyright (C) 2023
#
# 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" %}
{% from "actions/macros.html" import render_actions with context %}
{% block title %}Dettagli sessione{% endblock %}
{% block title %}
Dettagli sessione
{% endblock %}
{% block content %}
<div class="page">
<div class="row">
<div class="col">
<h1>Dettagli sessione</h1>
<div class="page">
<div class="row">
<div class="col">
<h1>
Dettagli sessione
</h1>
<div class="table">
<table>
<tr>
<td>Nome utente</td>
<td><b>{{ session.nickname }}</b></td>
</tr>
<tr>
<td>Stato</td>
<td>{% if session.active -%}
<span class="text-green">Attiva</span>
{%- else -%}
<span class="text-red">Scaduta</span>
{%- endif %}</td>
</tr>
<tr>
<td>Indirizzo IP</td>
<td>{{ session.ip }}</td>
</tr>
<tr>
<td>Inizio</td>
<td>{{ session.created_at|format_timestamp }}</td>
</tr>
<tr>
<td>{% if session.active %}Scadenza{% else %}Fine{% endif %}</td>
<td>{{ session.expires_at|format_timestamp }}</td>
</tr>
<tr>
<td>Team</td>
<td>
{% for team in session.teams %}
<a href="https://launchpad.net/~{{ team }}">
~{{ team -}}
</a>
{%- if not loop.last %},{% endif %}
{% endfor %}
</td>
</tr>
</table>
</div>
<div class="table">
<table>
<tr>
<td>
Nome utente
</td>
<td>
<b>
{{ session.nickname }}
</b>
</td>
</tr>
<tr>
<td>
Stato
</td>
<td>
{% if session.active -%}
<span class="text-green">
Attiva
</span>
{%- else -%}
<span class="text-red">
Scaduta
</span>
{%- endif %}
</td>
</tr>
<tr>
<td>
Indirizzo IP
</td>
<td>
{{ session.ip }}
</td>
</tr>
<tr>
<td>
Inizio
</td>
<td>
{{ session.created_at|format_timestamp }}
</td>
</tr>
<tr>
<td>
{% if session.active %}Scadenza{% else %}Fine{% endif %}
</td>
<td>
{{ session.expires_at|format_timestamp }}
</td>
</tr>
<tr>
<td>
Team
</td>
<td>
{% for team in session.teams %}
<a href="https://launchpad.net/~{{ team }}">
~{{ team -}}
</a>
{%- if not loop.last %},{% endif %}
{% endfor %}
</td>
</tr>
</table>
</div>
{% if g.auth_id != session.id and session.active %}
<a class="btn" href="{{ url_for(".sessions_revoke", id=session.id) }}">
Disabilita sessione
</a>
{% endif %}
</div>
</div>
{% if others %}
<div class="row">
<div class="col">
{% if session.active %}
<h2>Altre sessioni dell'utente</h2>
{% else %}
<h2>Sessioni correnti dell'utente</h2>
{% endif %}
<div class="table">
<table>
<tr>
<th>Indirizzo IP</th>
<th>Inizio</th>
<th>Scadenza</th>
<th></th>
<th></th>
</tr>
{% for session in others %}
<tr>
<td>{{ session.ip }}</td>
<td>{{ session.created_at|format_timestamp }}
<td>{{ session.expires_at|format_timestamp }}
<td>
<a href="{{ url_for(".sessions_show", id=session.id) }}">
Dettagli
</a>
</td>
<td>
{% if session.id == g.auth_id %}
Sessione corrente
{% else %}
<a href="{{ url_for(".sessions_revoke", id=session.id) }}">
Disabilita sessione
</a>
{% endif %}
</td>
</tr>
{% endfor %}
</table>
</div>
</div>
</div>
{% endif %}
</div>
{% if g.auth_id != session.id and session.active %}
<a class="btn" href="{{ url_for('.sessions_revoke', id=session.id) }}">
Disabilita sessione
</a>
{% endif %}
</div>
</div>
{% if others %}
<div class="row">
<div class="col">
{% if session.active %}
<h2>
Altre sessioni dell'utente
</h2>
{% else %}
<h2>
Sessioni correnti dell'utente
</h2>
{% endif %}
<div class="table">
<table>
<tr>
<th>
Indirizzo IP
</th>
<th>
Inizio
</th>
<th>
Scadenza
</th>
<th></th>
<th></th>
</tr>
{% for session in others %}
<tr>
<td>
{{ session.ip }}
</td>
<td>
{{ session.created_at|format_timestamp }}
</td>
<td>
{{ session.expires_at|format_timestamp }}
</td>
<td>
<a href="{{ url_for('.sessions_show', id=session.id) }}">
Dettagli
</a>
</td>
<td>
{% if session.id == g.auth_id %}
Sessione corrente
{% else %}
<a href="{{ url_for('.sessions_revoke', id=session.id) }}">
Disabilita sessione
</a>
{% endif %}
</td>
</tr>
{% endfor %}
</table>
</div>
</div>
</div>
{% endif %}
</div>
{% if permission("actions.show") and actions %}
<div class="page">
<div class="row">
<div class="col">
<h2>Azioni eseguite in questa sessione</h2>
{{ render_actions(actions, own=True) }}
</div>
</div>
</div>
{% endif %}
{% if permission("actions.show") and actions %}
<div class="page">
<div class="row">
<div class="col">
<h2>
Azioni eseguite in questa sessione
</h2>
{{ render_actions(actions, own=True) }}
</div>
</div>
</div>
{% endif %}
{% endblock %}
{# Source code of the Ubuntu-it website
# Copyright (C) 2018 Pietro Albini <pietroalbini@ubuntu.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/>.
#}
{#
# Source code of the Ubuntu-it website
# Copyright (C) 2018 Pietro Albini
<pietroalbini@ubuntu.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 %}Sessioni attive{% endblock %}
{% block title %}
Sessioni attive
{% endblock %}
{% block content %}
<div class="page">
<div class="row">
<div class="col">
<h1>Sessioni attive</h1>
{% if g.auth_sessions_count > 1 %}
<p>
<a class="btn" href="{{ url_for(".sessions_revoke_all") }}">
Disabilita ogni altra sessione
</a>
</p>
{% endif %}
</div>
</div>
<div class="row">
<div class="col">
<div class="table">
<table>
<tr>
<th>Nome utente</th>
<th>Indirizzo IP</th>
<th>Inizio</th>
<th>Scadenza</th>
<th></th>
<th></th>
</tr>
{% for session in sessions %}
<tr>
<td>{{ session.nickname }}</td>
<td>{{ session.ip }}</td>
<td>{{ session.created_at|format_timestamp }}</td>
<td>{{ session.expires_at|format_timestamp }}</td>
<td>
<a href="{{ url_for(".sessions_show", id=session.id) }}">
Dettagli
</a>
</td>
<td>
{% if session.id == g.auth_id %}
Sessione corrente
{% else %}
<a href="{{ url_for(".sessions_revoke", id=session.id) }}">
Disabilita sessione
</a>
{% endif %}
</td>
</tr>
{% endfor %}
</table>
</div>
</div>
</div>
</div>
<div class="page">
<div class="row">
<div class="col">
<h1>
Sessioni attive
</h1>
{% if g.auth_sessions_count > 1 %}
<p>
<a class="btn" href="{{ url_for('.sessions_revoke_all') }}">
Disabilita ogni altra sessione
</a>
</p>
{% endif %}
</div>
</div>
<div class="row">
<div class="col">
<div class="table">
<table>
<tr>
<th>
Nome utente
</th>
<th>
Indirizzo IP
</th>
<th>
Inizio
</th>
<th>
Scadenza
</th>
<th></th>
<th></th>
</tr>
{% for session in sessions %}
<tr>
<td>
{{ session.nickname }}
</td>
<td>
{{ session.ip }}
</td>
<td>
{{ session.created_at|format_timestamp }}
</td>
<td>
{{ session.expires_at|format_timestamp }}
</td>
<td>
<a href="{{ url_for('.sessions_show', id=session.id) }}">
Dettagli
</a>
</td>
<td>
{% if session.id == g.auth_id %}
Sessione corrente
{% else %}
<a href="{{ url_for('.sessions_revoke', id=session.id) }}">
Disabilita sessione
</a>
{% endif %}
</td>
</tr>
{% endfor %}
</table>
</div>
</div>
</div>
</div>
{% endblock %}
{# 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