summaryrefslogtreecommitdiffstats
path: root/clover/controller/control/views/dashboard.py
blob: 8b6969c91159fb21c4db1f1515498069bc7446a1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Copyright (c) Authors of Clover
#
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Apache License, Version 2.0
# which accompanies this distribution, and is available at
# http://www.apache.org/licenses/LICENSE-2.0

from flask import Blueprint, render_template, abort
from jinja2 import TemplateNotFound

simple_page = Blueprint('simple_page', __name__)


@simple_page.route('/dashboard', defaults={'page': 'index'})
def show(page):
    try:
        return render_template('home.html')
    except TemplateNotFound:
        abort(404)