mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2026-05-06 16:14:37 +00:00
Add playground blueprint
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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')
|
||||
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
from flask import Blueprint
|
||||
|
||||
|
||||
playground = Blueprint('playground', __name__)
|
||||
from . import events, views # noqa
|
||||
@@ -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')
|
||||
@@ -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 %}
|
||||
Reference in New Issue
Block a user