forked from Minecraft/minecraft_manager
46 lines
1.3 KiB
HTML
46 lines
1.3 KiB
HTML
{% extends "minecraft_manager/dashboard.html" %}
|
|
{% block title %}Bans{% endblock %}
|
|
{% block section %}
|
|
<div id="content" hidden="hidden">
|
|
<table id="model-table" class="table table-hover link-table">
|
|
<thead>
|
|
<tr>
|
|
<th>Player</th>
|
|
<th>Message</th>
|
|
<td>Issued By</td>
|
|
<th>Expires</th>
|
|
<th>Date</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for ban in bans %}
|
|
<tr {% if ban.id > 0 %} data-url="{% url 'player' %}" data-id="{{ ban.id }}" {% endif %}>
|
|
<!-- <td>{{ ban.id }}</td> -->
|
|
<td>{{ ban.name }}</td>
|
|
<td>{{ ban.reason }}</td>
|
|
<td>{{ ban.source }}</td>
|
|
<td>{{ ban.expires }}</td>
|
|
<td>{{ ban.created }}</td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<script>
|
|
$(document).ready(function() {
|
|
$("#model-table").DataTable({
|
|
'lengthMenu': [ [ 10, 25, 50, 100, -1 ], [ 10, 25, 50, 100, "All" ] ],
|
|
'initComplete': function(settings, json) {
|
|
$("#content").show();
|
|
$(this).css('width', '');
|
|
},
|
|
'order': [],
|
|
{% if request.user.usersettings %}
|
|
'pageLength': {{ request.user.usersettings.default_results }},
|
|
{% endif %}
|
|
});
|
|
|
|
});
|
|
|
|
</script>
|
|
{% endblock section %} |