Add playground blueprint

This commit is contained in:
Patrick Jentsch 2020-06-08 11:55:20 +02:00
parent 50a483cbfc
commit 1faf8f9ab2
6 changed files with 25 additions and 1 deletions

View File

@ -73,7 +73,6 @@ services:
- "./daemon/logger:/home/nopaqued/logger"
- "./daemon/notify:/home/nopaqued/notify"
- "./daemon/tasks:/home/nopaqued/tasks"
- "./daemon/decorators.py:/home/nopaqued/decorators.py"
- "./daemon/docker-entrypoint.sh:/home/nopaqued/docker-entrypoint.sh"
- "./daemon/nopaqued.py:/home/nopaqued/nopaqued.py"
- "./daemon/requirements.txt:/home/nopaqued/requirements.txt"

View File

@ -46,6 +46,9 @@ def create_app(config_name):
from .main import main as main_blueprint
app.register_blueprint(main_blueprint)
from .playground import playground as playground_blueprint
app.register_blueprint(playground_blueprint, url_prefix='/playground')
from .profile import profile as profile_blueprint
app.register_blueprint(profile_blueprint, url_prefix='/profile')

View File

@ -0,0 +1,5 @@
from flask import Blueprint
playground = Blueprint('playground', __name__)
from . import events, views # noqa

View File

View File

@ -0,0 +1,10 @@
from flask import render_template
from flask_login import login_required
from . import playground
@playground.route('/')
@login_required
def index():
return render_template('playground/index.html.j2',
title='Playground')

View File

@ -0,0 +1,7 @@
{% extends "nopaque.html.j2" %}
{% block page_content %}
<div class="col s12">
<p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero eos et accusam et justo duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata sanctus est Lorem ipsum dolor sit amet.</p>
</div>
{% endblock %}