Changeset View
Changeset View
Standalone View
Standalone View
swh/web/ui/views/main.py
# Copyright (C) 2016 The Software Heritage developers | # Copyright (C) 2016 The Software Heritage developers | ||||
# See the AUTHORS file at the top-level directory of this distribution | # See the AUTHORS file at the top-level directory of this distribution | ||||
# License: GNU Affero General Public License version 3, or any later version | # License: GNU Affero General Public License version 3, or any later version | ||||
# See top-level LICENSE file for more information | # See top-level LICENSE file for more information | ||||
import flask | import flask | ||||
from ..main import app | from ..main import app | ||||
@app.route('/') | @app.route('/') | ||||
def homepage(): | def homepage(): | ||||
"""Home page | """Home page | ||||
""" | """ | ||||
flask.flash('This Web app is still work in progress, use at your own risk', | return flask.redirect(flask.url_for('browse')) | ||||
'warning') | |||||
return flask.render_template('home.html') | |||||
@app.route('/about/') | @app.route('/about/') | ||||
def about(): | def about(): | ||||
return flask.render_template('about.html') | return flask.render_template('about.html') |