diff options
| author | Jokler <jokler@protonmail.com> | 2020-02-22 18:53:13 +0100 |
|---|---|---|
| committer | Jokler <jokler@protonmail.com> | 2020-02-22 23:20:10 +0100 |
| commit | 326cfa543c6263818aad7dec4a869bc8139ec14c (patch) | |
| tree | bc55a0e79107a93bc3e605a0cae32926dc4c52fc /templates/index.htm | |
| parent | b9edd85baae9ee483a2d403c641801adc585d26d (diff) | |
| download | pokebot-326cfa543c6263818aad7dec4a869bc8139ec14c.tar.gz pokebot-326cfa543c6263818aad7dec4a869bc8139ec14c.zip | |
Move web server related files into a folder
Diffstat (limited to 'templates/index.htm')
| -rw-r--r-- | templates/index.htm | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/templates/index.htm b/templates/index.htm deleted file mode 100644 index eed31f3..0000000 --- a/templates/index.htm +++ /dev/null @@ -1,36 +0,0 @@ -{% extends "base.htm" %} - -{% block title %}Overview{% endblock %} - -{% block content %} -<h1>Bots</h1> -<form action="/front-end" method="POST"> - <input type="hidden" placeholder="Enter front end" name="front-end" value="tmtu"> - <button type="submit">tmtu-mode</button> -</form> -<nav> - <a href="/">Bots</a> - <a href="/docs/api">API</a> -</nav> - -<ul> - {% for bot in bots %} - <h2>{{ bot.name }}</h1> - <div>State: {{ bot.state }}</div> - <div>Volume: {{ bot.volume * 100.0 }}%</div> - {% match bot.currently_playing %} - {% when Some with (current) %} - <span>Currently playing:</span> - {% let item = current %} - {% include "song.htm" %} - {% when None %} - {% endmatch %} - - {% for item in bot.playlist %} - <li> - {% include "song.htm" %} - </li> - {% endfor %} - {% endfor %} -</ul> -{% endblock %} |
