Screenshot uploads are saving

This commit is contained in:
2017-06-21 15:07:17 -05:00
parent b9c95826d9
commit b283aacc6a
2 changed files with 30 additions and 29 deletions

View File

@@ -0,0 +1,23 @@
<table id="games-table" class="hidden sortable pure-table pure-table-bordered center">
<thead>
<tr>
<th>Game Name</th>
</tr>
</thead>
<tbody>
{{ range $i, $v := .TemplateData.Games }}
<tr>
<td>{{ $v.Name }}</td>
</tr>
{{ end }}
</tbody>
</table>
<script>
snack.ready(function() {
var tableBody = document.querySelector("#games-table>tbody");
if(tableBody.children.length>0) {
// Show the table
document.getElementById('games-table').classList.remove('hidden');
}
});
</script>