minecraft_manager/templates/minecraft_manager/ban.html

46 lines
1.3 KiB
HTML
Raw Normal View History

2018-09-20 02:56:17 +00:00
{% extends "minecraft_manager/dashboard.html" %}
{% block title %}Bans{% endblock %}
2018-09-20 02:56:17 +00:00
{% block section %}
<div id="content" hidden="hidden">
attachments (#2) Add migration for longer timezone Signed-off-by: Etzelia <etzelia@hotmail.com> Merge branch 'master' of birbmc.com:BirbMC/minecraft_manager into birb # Conflicts: # external/views.py Fix col Signed-off-by: Etzelia <etzelia@hotmail.com> Add attachments, clean up UI, etc. Signed-off-by: Etzelia <etzelia@hotmail.com> Fix Discord embeds (#59) Fix Discord embeds Reviewed-on: https://git.etztech.xyz/MMS/MinecraftManagerDjango/pulls/59 Reviewed-by: ZeroHD <joey@ahines.net> Add requirements (not txt) (#57) Add requirements (not txt) Signed-off-by: Etzelia <etzelia@hotmail.com> Reviewed-on: https://git.etztech.xyz/MMS/MinecraftManagerDjango/pulls/57 Reviewed-by: ZeroHD <joey@ahines.net> Interim Patch (#54) Birb Patches (#1) Birb Patches Signed-off-by: Etzelia <etzelia@hotmail.com> Co-authored-by: Etzelia <etzelia@hotmail.com> Reviewed-by: ZeroHD <joey@ahines.net> Add 'LICENSE' (#53) Add 'LICENSE' Reviewed-by: ZeroHD <joey@ahines.net> Fix captcha and generify community invite (#52) Add validation for final question and some minor CSS Signed-off-by: Etzelia <etzelia@hotmail.com> Change some docs Signed-off-by: Etzelia <etzelia@hotmail.com> Fix captcha and generify community invite Signed-off-by: Etzelia <etzelia@hotmail.com> Co-authored-by: Etzelia <etzelia@hotmail.com> Reviewed-by: ZeroHD <joey@ahines.net> Co-authored-by: Etz Elia <etzelia@hotmail.com> Reviewed-on: https://git.birbmc.com/BirbMC/minecraft_manager/pulls/2 Co-Authored-By: Etzelia <etzelia@hotmail.com> Co-Committed-By: Etzelia <etzelia@hotmail.com>
2021-05-06 17:50:18 +00:00
<table id="model-table" class="table table-striped table-hover link-table">
2018-09-20 02:56:17 +00:00
<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 %}