commit 18d1bf052683e6710f3838f1e47163fa5a07fc68
parent 1dddcdca8a08ac41dfeb6acbd2b88314075bf2d9
Author: parazyd <parazyd@dyne.org>
Date: Sun, 20 Jan 2019 23:41:14 +0100
Style improvements to tables.
Diffstat:
2 files changed, 9 insertions(+), 5 deletions(-)
diff --git a/templates/messages.html b/templates/messages.html
@@ -13,7 +13,8 @@
{% endif %}
{% if not single %}
- <table class="table">
+ <div class="table-responsive">
+ <table class="table table-striped table-hover">
<thead>
<tr>
<th scope="col">From</th>
@@ -31,6 +32,7 @@
{% endfor %}
</tbody>
</table>
+ </div>
{% else %}
<form action="/sendmsg" method="POST" id="msgform">
diff --git a/templates/users.html b/templates/users.html
@@ -8,8 +8,9 @@
<h1 class="cover-heading">Users</h1>
- <table class="table">
- <thead>
+ <div class="table-responsive">
+ <table class="table table-sm table-striped table-hover">
+ <thead class="thead-dark">
<tr>
<th scope="col">#</th>
<th scope="col">Name</th>
@@ -34,8 +35,8 @@
<a href="/profile?id={{ i['id'] }}">{{ i['name'] }}</a>
</td>
<td>{{ i['email'] }}</td>
- <td><input form="form_{{ i['id'] }}" type="text" name="password" placeholder="New password"></td>
- <td><input form="form_{{ i['id'] }}" type="text" name="cap" placeholder="{{ i['cap'] }} (0=writer, 2=admin)"></td>
+ <td><input form="form_{{ i['id'] }}" class="form-control" type="text" name="password" placeholder="New password"></td>
+ <td><input form="form_{{ i['id'] }}" class="form-control" type="text" name="cap" placeholder="{{ i['cap'] }} (0=writer, 2=admin)"></td>
<td>{{ i['first_seen'] }}</td>
<td>
<button type="submit" form="form_{{ i['id'] }}" class="btn btn-outline-success">
@@ -51,6 +52,7 @@
{% endfor %}
</tbody>
</table>
+ </div>
</main>