diff --git a/docker-compose.yml b/docker-compose.yml index bd8ba276..f99321b0 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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" diff --git a/web/app/__init__.py b/web/app/__init__.py index cdb6f90b..b25e7cd4 100644 --- a/web/app/__init__.py +++ b/web/app/__init__.py @@ -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') diff --git a/web/app/playground/__init__.py b/web/app/playground/__init__.py new file mode 100644 index 00000000..e6492f3f --- /dev/null +++ b/web/app/playground/__init__.py @@ -0,0 +1,5 @@ +from flask import Blueprint + + +playground = Blueprint('playground', __name__) +from . import events, views # noqa diff --git a/web/app/playground/events.py b/web/app/playground/events.py new file mode 100644 index 00000000..e69de29b diff --git a/web/app/playground/views.py b/web/app/playground/views.py new file mode 100644 index 00000000..4609b0f5 --- /dev/null +++ b/web/app/playground/views.py @@ -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') diff --git a/web/app/templates/playground/index.html.j2 b/web/app/templates/playground/index.html.j2 new file mode 100644 index 00000000..440e4cf7 --- /dev/null +++ b/web/app/templates/playground/index.html.j2 @@ -0,0 +1,7 @@ +{% extends "nopaque.html.j2" %} + +{% block page_content %} +
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.
+