бэта сайта, убрал мусор, чуть-чуть допилил код
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Login</title>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<h1>Login</h1>
|
||||
<form method="post" action="/login">
|
||||
<label for="password">Password:</label>
|
||||
<input type="password" name="password" id="password">
|
||||
<button type="submit">Login</button>
|
||||
</form>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,39 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<!-- Audio Player -->
|
||||
<script src="https://kit.fontawesome.com/025ae7f87a.js" crossorigin="anonymous"></script>
|
||||
<link href="{{ url_for('static', path='/audio-player/css/player.css') }}" rel="stylesheet">
|
||||
<script src="{{ url_for('static', path='/audio-player/js/player.js') }}"></script>
|
||||
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div class="container">
|
||||
<div class="text-file">
|
||||
{% for lo in log %}
|
||||
<div>
|
||||
<div class="player-container" id="player-container-{{ loop.index }}"></div>
|
||||
<script>
|
||||
new AudioPlayer({
|
||||
container: '#player-container-{{ loop.index }}',
|
||||
audioFile: '{{ lo.audio_file }}'
|
||||
});
|
||||
</script>
|
||||
{% if lo.text %}
|
||||
{% for line in lo.text %}
|
||||
{{ line }}<br>
|
||||
{% endfor %}
|
||||
{% else %}
|
||||
No text file found.
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
@@ -0,0 +1,31 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Logs</title>
|
||||
</head>
|
||||
<body>
|
||||
<div class="container">
|
||||
<h1>Logs</h1>
|
||||
|
||||
{% if logs %}
|
||||
<ul class="logs-list">
|
||||
{% for log in logs %}
|
||||
<li><a href="/logs/{{ log[0] }}">{{ log[1] }}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
|
||||
{% else %}
|
||||
No logs found.
|
||||
{% endif %}
|
||||
|
||||
{% if logged_in %}
|
||||
Logged in as admin.
|
||||
{% else %}
|
||||
You need to be logged in to view this page.
|
||||
{% endif %}
|
||||
|
||||
</div>
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
Reference in New Issue
Block a user