esp first
This commit is contained in:
@@ -6,7 +6,7 @@ unsecure = Blueprint('unsecure', __name__, url_prefix='/unsecure')
|
||||
|
||||
@unsecure.route('/')
|
||||
def index():
|
||||
return render_template('index.html')
|
||||
return render_template('index.html', title='gimmiCoffee')
|
||||
|
||||
@unsecure.route('/send')
|
||||
def send_command():
|
||||
@@ -22,4 +22,4 @@ def send_command():
|
||||
|
||||
@unsecure.route('/live')
|
||||
def test():
|
||||
return render_template('live.html')
|
||||
return render_template('live.html', users=[{'name': 'Max'}, {'name': 'Moritz'}, {'name': 'Hans'}])
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<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') }}">
|
||||
</head>
|
||||
<body>
|
||||
|
||||
@@ -10,7 +10,12 @@
|
||||
<p><strong>Test:</strong> <span id="test"></span></p>
|
||||
<p><strong>Status:</strong> <span id="status"></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>
|
||||
const socket = io();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user