mirror of
https://github.com/Adam-Ant/QuotesDB
synced 2025-06-15 22:01:12 +00:00
Move some structure to child files, allows more flexibility
This commit is contained in:
@ -17,34 +17,38 @@
|
||||
{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
<div class="table-responsive">
|
||||
<table class="table table-hover table-bordered" id="QuoteTable">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Date Added</th>
|
||||
<th>User</th>
|
||||
<th>Quote</th>
|
||||
<th>Context</th>
|
||||
{% if data[1] %}
|
||||
<th>Added By:</th>
|
||||
<th><span class="glyphicon glyphicon-trash"></span></th>
|
||||
{% endif %}
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for entry in data[0] %}
|
||||
<tr>
|
||||
<td><a href="/">{{ entry[2] }}</a></td>
|
||||
<td>{{ uid_to_user(entry[3]) }}</td>
|
||||
<td>{{ entry[1] }}</td>
|
||||
<td>{{ entry[4] }}</td>
|
||||
{% if data[1] %}
|
||||
<td>{{ uid_to_user(entry[5]) }}</td>
|
||||
<td><a href="/deletequote?id={{ entry[0] }}" class="btn btn-danger"role="button" ><span class="glyphicon glyphicon-trash"></span></a></td>
|
||||
{% endif %}
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="container-fluid">
|
||||
<div class="col-md-12">
|
||||
<div class="table-responsive">
|
||||
<table class="table table-hover table-bordered" id="QuoteTable">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Date Added</th>
|
||||
<th>User</th>
|
||||
<th>Quote</th>
|
||||
<th>Context</th>
|
||||
{% if data[1] %}
|
||||
<th>Added By:</th>
|
||||
<th><span class="glyphicon glyphicon-trash"></span></th>
|
||||
{% endif %}
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for entry in data[0] %}
|
||||
<tr>
|
||||
<td><a href="/">{{ entry[2] }}</a></td>
|
||||
<td>{{ uid_to_user(entry[3]) }}</td>
|
||||
<td>{{ entry[1] }}</td>
|
||||
<td>{{ entry[4] }}</td>
|
||||
{% if data[1] %}
|
||||
<td>{{ uid_to_user(entry[5]) }}</td>
|
||||
<td><a href="/deletequote?id={{ entry[0] }}" class="btn btn-danger"role="button" ><span class="glyphicon glyphicon-trash"></span></a></td>
|
||||
{% endif %}
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
Reference in New Issue
Block a user