diff options
author | Dan McGee <dan@archlinux.org> | 2012-07-08 23:30:48 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2012-07-08 23:33:44 -0500 |
commit | 8383a071608329c7683f7a710030ce945bd20b4d (patch) | |
tree | 55efabe829287b71cfb52b8db3dc05e3dd0294e7 /templates/mirrors | |
parent | c589f7d930ee7642524ecc33ee41bae79d4edd9b (diff) |
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.html | 3 | ||||
-rw-r--r-- | templates/mirrors/mirrors.html | 3 | ||||
-rw-r--r-- | templates/mirrors/status.html | 3 |
3 files changed, 3 insertions, 6 deletions
diff --git a/templates/mirrors/mirror_details.html b/templates/mirrors/mirror_details.html index edeab5dc..18175845 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 77c9ec33..0950520d 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 472e9501..ec2ae568 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() { |