forked from chainsaw_mcginny/RoosterReWrite
6 changed files with 112 additions and 60 deletions
@ -0,0 +1,24 @@ |
|||
<!doctype html> |
|||
<html lang="en"> |
|||
<head> |
|||
<meta charset="utf-8"> |
|||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> |
|||
<title>Rooster Web UI</title> |
|||
<link rel="stylesheet" href="/assets/style.css"> |
|||
</head> |
|||
<body> |
|||
|
|||
<div class="d-flex flex-column flex-md-row align-items-center p-3 px-md-4 mb-3 bg-white border-bottom shadow-sm"> |
|||
<h5 class="my-0 mr-md-auto font-weight-normal">Rooster Web UI</h5> |
|||
<nav class="my-2 my-md-0 mr-md-3"> |
|||
{% if current_user.is_authenticated %} |
|||
<a class="p-2 text-dark" href="/logout">Logout</a> |
|||
{% endif %} |
|||
</nav> |
|||
</div> |
|||
|
|||
<div class="container"> |
|||
{% block content %}{% endblock %} |
|||
</div> |
|||
</body> |
|||
</html> |
@ -1,58 +1,44 @@ |
|||
<!doctype html> |
|||
<html lang="en"> |
|||
<head> |
|||
<meta charset="utf-8"> |
|||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> |
|||
<title>Rooster Web UI</title> |
|||
<link rel="stylesheet" href="/assets/style.css"> |
|||
</head> |
|||
<body> |
|||
{% extends "base.html" %} |
|||
|
|||
<div class="d-flex flex-column flex-md-row align-items-center p-3 px-md-4 mb-3 bg-white border-bottom shadow-sm"> |
|||
<h5 class="my-0 mr-md-auto font-weight-normal">Rooster Web UI</h5> |
|||
</div> |
|||
{% block content %} |
|||
<p>Rooster is currently in <span class="badge">{{ guilds|length }}</span> guilds and is serving |
|||
<span class="badge">{{ users|length }}</span> users.</p> |
|||
|
|||
<div class="container"> |
|||
<p>Rooster is currently in <span class="badge">{{ guilds|length }}</span> guilds and is serving |
|||
<span class="badge">{{ users|length }}</span> users.</p> |
|||
<table class="table table-bordered table-striped"> |
|||
<thead> |
|||
<tr> |
|||
<th scope="col">Id</th> |
|||
<th scope="col">Name</th> |
|||
</tr> |
|||
</thead> |
|||
<tbody> |
|||
{% for user in users %} |
|||
<tr> |
|||
<td>{{ user.id }}</td> |
|||
<td>{{ user.name }}</td> |
|||
</tr> |
|||
{% endfor %} |
|||
</tbody> |
|||
</table> |
|||
|
|||
<table class="table table-bordered table-striped"> |
|||
<thead> |
|||
<tr> |
|||
<th scope="col">Id</th> |
|||
<th scope="col">Name</th> |
|||
</tr> |
|||
</thead> |
|||
<tbody> |
|||
{% for user in users %} |
|||
<tr> |
|||
<td>{{ user.id }}</td> |
|||
<td>{{ user.name }}</td> |
|||
</tr> |
|||
{% endfor %} |
|||
</tbody> |
|||
</table> |
|||
|
|||
<table class="table table-bordered table-striped"> |
|||
<thead> |
|||
<tr> |
|||
<th scope="col">Id</th> |
|||
<th scope="col">Name</th> |
|||
<th scope="col">Members</th> |
|||
<th scope="col">Channels</th> |
|||
</tr> |
|||
</thead> |
|||
<tbody> |
|||
{% for guild in guilds %} |
|||
<tr> |
|||
<td>{{ guild.id }}</td> |
|||
<td>{{ guild.name }}</td> |
|||
<td>{{ guild.members|length }}</td> |
|||
<td>{{ guild.channels|length }}</td> |
|||
</tr> |
|||
{% endfor %} |
|||
</tbody> |
|||
</table> |
|||
</div> |
|||
</body> |
|||
</html> |
|||
<table class="table table-bordered table-striped"> |
|||
<thead> |
|||
<tr> |
|||
<th scope="col">Id</th> |
|||
<th scope="col">Name</th> |
|||
<th scope="col">Members</th> |
|||
<th scope="col">Channels</th> |
|||
</tr> |
|||
</thead> |
|||
<tbody> |
|||
{% for guild in guilds %} |
|||
<tr> |
|||
<td>{{ guild.id }}</td> |
|||
<td>{{ guild.name }}</td> |
|||
<td>{{ guild.members|length }}</td> |
|||
<td>{{ guild.channels|length }}</td> |
|||
</tr> |
|||
{% endfor %} |
|||
</tbody> |
|||
</table> |
|||
{% endblock %} |
@ -0,0 +1,12 @@ |
|||
{% extends "base.html" %} |
|||
|
|||
{% block content %} |
|||
<p>You need to login to access this page.</p> |
|||
<form class="form" action="{{ url_for('login') }}" method="post"> |
|||
<div class="form-group"> |
|||
<label for="access_key">Access key</label> |
|||
<input type="password" class="form-control" id="access_key" name="access_key" required> |
|||
</div> |
|||
<button type="submit" class="btn btn-primary">Submit</button> |
|||
</form> |
|||
{% endblock %} |
Loading…
Reference in new issue