esp first
This commit is contained in:
@@ -6,7 +6,7 @@ unsecure = Blueprint('unsecure', __name__, url_prefix='/unsecure')
|
|||||||
|
|
||||||
@unsecure.route('/')
|
@unsecure.route('/')
|
||||||
def index():
|
def index():
|
||||||
return render_template('index.html')
|
return render_template('index.html', title='gimmiCoffee')
|
||||||
|
|
||||||
@unsecure.route('/send')
|
@unsecure.route('/send')
|
||||||
def send_command():
|
def send_command():
|
||||||
@@ -22,4 +22,4 @@ def send_command():
|
|||||||
|
|
||||||
@unsecure.route('/live')
|
@unsecure.route('/live')
|
||||||
def test():
|
def test():
|
||||||
return render_template('live.html')
|
return render_template('live.html', users=[{'name': 'Max'}, {'name': 'Moritz'}, {'name': 'Hans'}])
|
||||||
|
|||||||
@@ -4,7 +4,7 @@
|
|||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8">
|
<meta charset="UTF-8">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<title>gimmiCoffee</title>
|
<title>{{ title }}</title>
|
||||||
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
|
<link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|||||||
@@ -10,7 +10,12 @@
|
|||||||
<p><strong>Test:</strong> <span id="test"></span></p>
|
<p><strong>Test:</strong> <span id="test"></span></p>
|
||||||
<p><strong>Status:</strong> <span id="status"></span></p>
|
<p><strong>Status:</strong> <span id="status"></span></p>
|
||||||
<p><strong>Counter:</strong> <span id="counter"></span></p>
|
<p><strong>Counter:</strong> <span id="counter"></span></p>
|
||||||
|
<h1>Benutzer</h1>
|
||||||
|
<ul>
|
||||||
|
{% for user in users %}
|
||||||
|
<li>{{ user.name }}</li>
|
||||||
|
{% endfor %}
|
||||||
|
</ul>
|
||||||
<script>
|
<script>
|
||||||
const socket = io();
|
const socket = io();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user