mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2024-11-14 16:55:42 +00:00
Add playground blueprint
This commit is contained in:
parent
50a483cbfc
commit
1faf8f9ab2
@ -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')
|
||||
|
||||
|
5
web/app/playground/__init__.py
Normal file
5
web/app/playground/__init__.py
Normal file
@ -0,0 +1,5 @@
|
||||
from flask import Blueprint
|
||||
|
||||
|
||||
playground = Blueprint('playground', __name__)
|
||||
from . import events, views # noqa
|
0
web/app/playground/events.py
Normal file
0
web/app/playground/events.py
Normal file
10
web/app/playground/views.py
Normal file
10
web/app/playground/views.py
Normal 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')
|
7
web/app/templates/playground/index.html.j2
Normal file
7
web/app/templates/playground/index.html.j2
Normal 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 %}
|
Loading…
Reference in New Issue
Block a user