Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
Nuovo sito
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
16
Issues
16
List
Boards
Labels
Milestones
Merge Requests
2
Merge Requests
2
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Gruppo Web
Nuovo sito
Commits
0cfce749
Commit
0cfce749
authored
Oct 25, 2016
by
Pietro Albini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add a not found page
parent
9b97b19a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
43 additions
and
0 deletions
+43
-0
uitwww/__init__.py
uitwww/__init__.py
+4
-0
uitwww/templates/404.html
uitwww/templates/404.html
+39
-0
No files found.
uitwww/__init__.py
View file @
0cfce749
...
...
@@ -33,6 +33,10 @@ def create_app(data_path):
app
.
register_blueprint
(
pages
.
prepare_blueprint
(
app
))
pages
.
prepare_navbar
(
app
)
@
app
.
errorhandler
(
404
)
def
not_found
(
error
):
return
flask
.
render_template
(
"404.html"
)
return
app
...
...
uitwww/templates/404.html
0 → 100644
View file @
0cfce749
{# 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
/>
.
#}
{% extends "layout.html" %}
{% block title %} Pagina non trovata {% endblock %}
{% block content %}
<div
class=
"row row-hero"
>
<div
class=
"twelve-col"
>
<h2>
Questa pagina non esiste
</h2>
<p>
Beh, ovviamente
<i>
questa
</i>
pagina esiste. Ma la pagina che hai
richiesto non esiste. Infatti, questa pagina è qui 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=
"http://forum.ubuntu-it.org/viewforum.php?f=45&sid=855a03444972c626fb2d486b42d05469"
>
segnalacelo
</a>
che provvederemo a sistemare il prima possibile!
</p>
</div>
</div>
{% endblock %}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment