summaryrefslogtreecommitdiff
path: root/main/templatetags/cdn.py
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2013-04-22 00:36:57 -0400
committerLuke Shumaker <LukeShu@sbcglobal.net>2013-04-22 00:36:57 -0400
commitdf7a6aa620af6a165bdacd755757f8cb1179331c (patch)
tree384b4c62d1f50d8effb733d81d2a810666807624 /main/templatetags/cdn.py
parent94f972bb892dbf9a86f089f1872ae6d849c0cd0e (diff)
parenta22557811a24b68ef85d4271787c48d8d1e4fc99 (diff)
Merge branch 'archweb-generic2'
Conflicts: README.BRANDING local_settings.py.example packages/templatetags/package_extras.py public/views.py releng/views.py settings.py sitestatic/archnavbar/archnavbar.css sitestatic/silhouette.png templates/base.html templates/packages/differences.html templates/packages/opensearch.xml templates/packages/search.html templates/public/donate.html templates/public/download.html templates/public/feeds.html templates/public/index.html urls.py
Diffstat (limited to 'main/templatetags/cdn.py')
-rw-r--r--main/templatetags/cdn.py10
1 files changed, 9 insertions, 1 deletions
diff --git a/main/templatetags/cdn.py b/main/templatetags/cdn.py
index ab5d881a..fc63fdd8 100644
--- a/main/templatetags/cdn.py
+++ b/main/templatetags/cdn.py
@@ -7,7 +7,7 @@ register = template.Library()
@register.simple_tag
def jquery():
- version = '1.4.4'
+ version = '1.8.3'
oncdn = getattr(settings, 'CDN_ENABLED', True)
if oncdn:
link = 'https://ajax.googleapis.com/ajax/libs/jquery/' \
@@ -17,4 +17,12 @@ def jquery():
link = staticfiles_storage.url(filename)
return '<script type="text/javascript" src="%s"></script>' % link
+
+@register.simple_tag
+def jquery_tablesorter():
+ version = '2.7'
+ filename = 'jquery.tablesorter-%s.min.js' % version
+ link = staticfiles_storage.url(filename)
+ return '<script type="text/javascript" src="%s"></script>' % link
+
# vim: set ts=4 sw=4 et: