summaryrefslogtreecommitdiff
path: root/main/templatetags/cdn.py
AgeCommit message (Collapse)Author
2012-10-26mirror changes from commit '943ef2e8e4'Luke Shumaker
2011-11-08Always use same URL for both secure and non-secure CDN requestsDan McGee
Use a scheme-relative URL rather than serving different content to users based on HTTP or HTTPS. Should prevent mismatched certificate errors. Signed-off-by: Dan McGee <dan@archlinux.org>
2011-06-15Update to jQuery 1.4.4Dan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-06-14Simplify jQuery CDN tagDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-10-28Always use HTTPS for jQueryDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-10-27Add tag for inserting CDN prefix on media URLsDan McGee
This tag will just be placed before any media reference that is available on the CDN; if the CDN is enabled and CDN_PATH/CDN_PATH_SECURE are defined the correct URL will be generated. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-10-26Upgrade to jQuery 1.4.3Dan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-09-22Get secure/unsecure checking actually workingDan McGee
We need a bit more, like actually having something relevant in the RequestContext object, in order for this to all work. Instead of putting the full request in just populate a 'secure' key with a boolean value indicating whether the request is secure. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-09-21Allow serving jQuery via HTTPS if secure request detectedDan McGee
Handles the concerns in FS#19045. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-05-14Make CDN not dependent on DEBUG settingDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-02-27Upgrade jQuery to 1.4.2Dan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-02-27Add CDN templatetag packageDan McGee
For now, this contains one new template tag- 'jquery'. This will allow us to use the Google AJAX CDN in non-debug environments, since there is really no need for us to be the source of this common file. In the future this package may gain other static media resource tags as well. Signed-off-by: Dan McGee <dan@archlinux.org>