mirror of
https://gitlab.ub.uni-bielefeld.de/sfb1288inf/nopaque.git
synced 2026-10-06 16:31:10 +00:00
Add playground blueprint
This commit is contained in:
1 parent
50a483cbfc
commit
1faf8f9ab2
6 files changed
+25
-1
No files matched your search
@@ -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
|
||||
Whitespace-only changes.
@@ -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