Fix missing paging on /user-content
This commit is contained in:
parent
787242bb5f
commit
63d4162c97
|
@ -7,12 +7,5 @@ window.addEventListener('load', () => {
|
|||
document.getElementById('host-game-form').submit();
|
||||
});
|
||||
|
||||
$("#host-game-table").DataTable({
|
||||
"paging": false,
|
||||
"ordering": true,
|
||||
"order": [[ 3, "desc" ]],
|
||||
"info": false,
|
||||
"dom": "t",
|
||||
});
|
||||
adjustFooterHeight();
|
||||
});
|
||||
|
|
|
@ -0,0 +1,17 @@
|
|||
window.addEventListener('load', () => {
|
||||
console.log("loaded");
|
||||
$("#rooms-table").DataTable({
|
||||
"paging": false,
|
||||
"ordering": true,
|
||||
"order": [[ 3, "desc" ]],
|
||||
"info": false,
|
||||
"dom": "t",
|
||||
});
|
||||
$("#seeds-table").DataTable({
|
||||
"paging": false,
|
||||
"ordering": true,
|
||||
"order": [[ 2, "desc" ]],
|
||||
"info": false,
|
||||
"dom": "t",
|
||||
});
|
||||
});
|
|
@ -28,25 +28,3 @@
|
|||
#host-game button{
|
||||
margin-top: 5px;
|
||||
}
|
||||
|
||||
#host-game-table{
|
||||
margin-right: auto;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
#host-game-table th{
|
||||
padding: 0 20px 0 0;
|
||||
}
|
||||
|
||||
#host-game-table td{
|
||||
padding: 6px 20px 0 0;
|
||||
}
|
||||
|
||||
#host-game-table td.center{
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#host-game-table.dataTable{
|
||||
width: unset;
|
||||
|
||||
}
|
||||
|
|
|
@ -31,3 +31,24 @@
|
|||
#user-content .center{
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#user-content-table{
|
||||
margin-right: auto;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
#user-content .table td.center{
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#user-content table.dataTable{
|
||||
width: unset;
|
||||
}
|
||||
|
||||
table.dataTable thead th{
|
||||
padding: 0 20px 0 0;
|
||||
}
|
||||
|
||||
table.dataTable tbody td{
|
||||
padding: 6px 20px 0 0;
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
{% extends 'tablepage.html' %}
|
||||
{% extends 'pageWrapper.html' %}
|
||||
|
||||
{% block head %}
|
||||
{{ super() }}
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
{% extends 'pageWrapper.html' %}
|
||||
{% extends 'tablepage.html' %}
|
||||
|
||||
{% block head %}
|
||||
{{ super() }}
|
||||
<title>Generate Game</title>
|
||||
<link rel="stylesheet" type="text/css" href="{{ static_autoversion("styles/userContent.css") }}" />
|
||||
<script type="application/ecmascript" src="{{ static_autoversion("assets/userContent.js") }}"></script>
|
||||
{% endblock %}
|
||||
|
||||
{% block body %}
|
||||
|
@ -15,7 +16,7 @@
|
|||
|
||||
<h2>Your Rooms</h2>
|
||||
{% if rooms %}
|
||||
<table>
|
||||
<table id="rooms-table" class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Seed</th>
|
||||
|
@ -46,7 +47,7 @@
|
|||
|
||||
<h2>Your Seeds</h2>
|
||||
{% if seeds %}
|
||||
<table>
|
||||
<table id="seeds-table" class="table">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Seed</th>
|
||||
|
|
Loading…
Reference in New Issue