diff options
author | Dan McGee <dan@archlinux.org> | 2012-03-24 18:32:38 +0100 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2012-03-24 18:32:38 +0100 |
commit | 024fd1b2843d2abd0094faedfbc49e1d1a21edd0 (patch) | |
tree | 7928ea819db606d1e0b92e3ea0a63b1721c82ae7 /main | |
parent | 9d011312e850aa3dcab539cbf633191b2f3b7f54 (diff) | |
download | archweb-024fd1b2843d2abd0094faedfbc49e1d1a21edd0.tar.gz archweb-024fd1b2843d2abd0094faedfbc49e1d1a21edd0.tar.xz |
Remove cdnprefix template tag
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'main')
-rw-r--r-- | main/templatetags/cdn.py | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/main/templatetags/cdn.py b/main/templatetags/cdn.py index b91553e..f290a52 100644 --- a/main/templatetags/cdn.py +++ b/main/templatetags/cdn.py @@ -15,16 +15,4 @@ def jquery(): link = '%sjquery-%s.min.js' % (static_url, version) return '<script type="text/javascript" src="%s"></script>' % link -@register.tag -def cdnprefix(parser, token): - return CDNPrefixNode() - -class CDNPrefixNode(template.Node): - def render(self, context): - oncdn = getattr(settings, 'CDN_ENABLED', True) - if not oncdn: - return '' - # if left undefined, same behavior as if CDN is turned off - return getattr(settings, 'CDN_PATH', '') - # vim: set ts=4 sw=4 et: |