# -*- coding: utf-8 -*-
"""
    admin.py
    ~~~~~~
    The admin module 
    
    :copyright: (c) 2012 by Leonardo Zizzamia
    :license: BSD (See LICENSE for details)
""" 
# Imports outside Bombolone
from flask import Blueprint, render_template

# Imports inside Bombolone
from decorators import check_authentication

MODULE_DIR = 'modules/admin'
admin = Blueprint('admin', __name__)

@admin.route('/admin/')
@check_authentication
def dashboard():
    """ The dashboard contains a collection of information, 
    such as statistics and other useful stuff. """
    return render_template('{}/dashboard.html'.format(MODULE_DIR))

e37d7e84f7b48fb98d1e2dd04eaa24120f162d1f
<mask token>

<mask token>


@admin.route('/admin/')
@check_authentication
def dashboard():
    """ The dashboard contains a collection of information, 
    such as statistics and other useful stuff. """
    return render_template('{}/dashboard.html'.format(MODULE_DIR))

<mask token>
MODULE_DIR = 'modules/admin'
admin = Blueprint('admin', __name__)


@admin.route('/admin/')
@check_authentication
def dashboard():
    """ The dashboard contains a collection of information, 
    such as statistics and other useful stuff. """
    return render_template('{}/dashboard.html'.format(MODULE_DIR))

<mask token>
from flask import Blueprint, render_template
from decorators import check_authentication
MODULE_DIR = 'modules/admin'
admin = Blueprint('admin', __name__)


@admin.route('/admin/')
@check_authentication
def dashboard():
    """ The dashboard contains a collection of information, 
    such as statistics and other useful stuff. """
    return render_template('{}/dashboard.html'.format(MODULE_DIR))

# -*- coding: utf-8 -*-
"""
    admin.py
    ~~~~~~
    The admin module 
    
    :copyright: (c) 2012 by Leonardo Zizzamia
    :license: BSD (See LICENSE for details)
""" 
# Imports outside Bombolone
from flask import Blueprint, render_template

# Imports inside Bombolone
from decorators import check_authentication

MODULE_DIR = 'modules/admin'
admin = Blueprint('admin', __name__)

@admin.route('/admin/')
@check_authentication
def dashboard():
    """ The dashboard contains a collection of information, 
    such as statistics and other useful stuff. """
    return render_template('{}/dashboard.html'.format(MODULE_DIR))
