Skip to content

Commit 1abce57

Browse files
committed
templates: Add tablesorter where required
1 parent 7cc333d commit 1abce57

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

templates/home.html

+12
Original file line numberDiff line numberDiff line change
@@ -73,3 +73,15 @@ <h3 class="panel-title">
7373
{% endif %}
7474
</div>
7575
{% endblock %}
76+
{% block css %}
77+
<link rel="stylesheet" href="https://tools-static.wmflabs.org/cdnjs/ajax/libs/jquery.tablesorter/2.28.5/css/theme.default.min.css" crossorigin="anonymous">
78+
{% endblock %}
79+
{% block js %}
80+
{{ super() }}
81+
<script src="https://tools-static.wmflabs.org/cdnjs/ajax/libs/jquery.tablesorter/2.28.5/js/jquery.tablesorter.min.js" crossorigin="anonymous"></script>
82+
<script type="text/javascript">
83+
$(document).ready(function() {
84+
$(".tablesorter").tablesorter();
85+
});
86+
</script>
87+
{% endblock %}

templates/zone.html

+13
Original file line numberDiff line numberDiff line change
@@ -88,3 +88,16 @@ <h3 class="panel-title">
8888
<p>Unknown DNS zone '{{ name }}'. Are you just guessing?</p>
8989
{% endif %}
9090
{% endblock %}
91+
92+
{% block css %}
93+
<link rel="stylesheet" href="https://tools-static.wmflabs.org/cdnjs/ajax/libs/jquery.tablesorter/2.28.5/css/theme.default.min.css" crossorigin="anonymous">
94+
{% endblock %}
95+
{% block js %}
96+
{{ super() }}
97+
<script src="https://tools-static.wmflabs.org/cdnjs/ajax/libs/jquery.tablesorter/2.28.5/js/jquery.tablesorter.min.js" crossorigin="anonymous"></script>
98+
<script type="text/javascript">
99+
$(document).ready(function() {
100+
$(".tablesorter").tablesorter();
101+
});
102+
</script>
103+
{% endblock %}

0 commit comments

Comments
 (0)