2016-05-13 21:55:54 -05:00
|
|
|
{% extends 'base.html' %}
|
|
|
|
{% load static %}
|
|
|
|
|
|
|
|
{% block extra_media %}
|
|
|
|
<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/t/bs/jqc-1.12.0,dt-1.10.11/datatables.min.css"/>
|
|
|
|
<script type="text/javascript" src="https://cdn.datatables.net/t/bs/jqc-1.12.0,dt-1.10.11/datatables.min.js"></script>
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block title %}karma{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
<div style="width: 75%; margin-left: auto; margin-right: auto;">
|
|
|
|
<table id="karma" class="display table table-striped table-bordered" cellspacing="0" width="100%">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Key</th>
|
|
|
|
<th>Score</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tfoot>
|
|
|
|
<tr>
|
|
|
|
<th>Key</th>
|
|
|
|
<th>Score</th>
|
|
|
|
</tr>
|
|
|
|
</tfoot>
|
|
|
|
<tbody>
|
|
|
|
{% for entry in entries %}
|
|
|
|
<tr>
|
|
|
|
<td><a href="{% url 'karma_key_detail' entry.key %}">{{ entry.key }}</a></td>
|
|
|
|
<td>{{ entry.score }}</td>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
<script type="text/javascript">
|
|
|
|
$(document).ready(function() {
|
|
|
|
$('#karma').DataTable( {
|
2016-05-13 22:30:59 -05:00
|
|
|
"order": [[ 1, "desc" ]],
|
2016-05-13 22:41:13 -05:00
|
|
|
"lengthMenu": [[10, 25, 50, -1], [10, 25, 50, "All"]]
|
2016-05-13 21:55:54 -05:00
|
|
|
} );
|
|
|
|
} );
|
|
|
|
</script>
|
|
|
|
{% endblock %}
|