summaryrefslogtreecommitdiffstats
path: root/templates/mirrors
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2012-07-09 06:30:48 +0200
committerDan McGee <dan@archlinux.org>2012-07-09 06:33:44 +0200
commit8383a071608329c7683f7a710030ce945bd20b4d (patch)
tree55efabe829287b71cfb52b8db3dc05e3dd0294e7 /templates/mirrors
parentc589f7d930ee7642524ecc33ee41bae79d4edd9b (diff)
downloadarchweb-8383a071608329c7683f7a710030ce945bd20b4d.tar.gz
archweb-8383a071608329c7683f7a710030ce945bd20b4d.tar.xz
Add a new jquery_tablesorter CDN template tag
And use it everywhere we were including the file before. This should make updating the version a heck of a lot easier. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'templates/mirrors')
-rw-r--r--templates/mirrors/mirror_details.html3
-rw-r--r--templates/mirrors/mirrors.html3
-rw-r--r--templates/mirrors/status.html3
3 files changed, 3 insertions, 6 deletions
diff --git a/templates/mirrors/mirror_details.html b/templates/mirrors/mirror_details.html
index edeab5d..1817584 100644
--- a/templates/mirrors/mirror_details.html
+++ b/templates/mirrors/mirror_details.html
@@ -105,8 +105,7 @@
</tbody>
</table>
</div>
-{% load cdn %}{% jquery %}
-<script type="text/javascript" src="{% static "jquery.tablesorter.min.js" %}"></script>
+{% load cdn %}{% jquery %}{% jquery_tablesorter %}
<script type="text/javascript" src="{% static "archweb.js" %}"></script>
<script type="text/javascript">
$(document).ready(function() {
diff --git a/templates/mirrors/mirrors.html b/templates/mirrors/mirrors.html
index 77c9ec3..0950520 100644
--- a/templates/mirrors/mirrors.html
+++ b/templates/mirrors/mirrors.html
@@ -41,8 +41,7 @@
</tbody>
</table>
</div>
-{% load cdn %}{% jquery %}
-<script type="text/javascript" src="{% static "jquery.tablesorter.min.js" %}"></script>
+{% load cdn %}{% jquery %}{% jquery_tablesorter %}
<script type="text/javascript" src="{% static "archweb.js" %}"></script>
<script type="text/javascript">
$(document).ready(function() {
diff --git a/templates/mirrors/status.html b/templates/mirrors/status.html
index 472e950..ec2ae56 100644
--- a/templates/mirrors/status.html
+++ b/templates/mirrors/status.html
@@ -98,8 +98,7 @@
</table>
</div>
-{% load cdn %}{% jquery %}
-<script type="text/javascript" src="{% static "jquery.tablesorter.min.js" %}"></script>
+{% load cdn %}{% jquery %}{% jquery_tablesorter %}
<script type="text/javascript" src="{% static "archweb.js" %}"></script>
<script type="text/javascript">
$(document).ready(function() {