summaryrefslogtreecommitdiffstats
path: root/askbot/skins
diff options
context:
space:
mode:
authorTyler Mandry <tmandry@gmail.com>2013-03-14 22:38:47 -0500
committerTyler Mandry <tmandry@gmail.com>2013-03-16 01:30:21 -0500
commit050b65ab3b0f1914772e382678df978c6426888f (patch)
tree5bd4ecdc6c1eaed52db1c9014040ff5be1ba00c2 /askbot/skins
parentdcb2cf752a24ef78899bdcef65962c93cda40855 (diff)
downloadaskbot-050b65ab3b0f1914772e382678df978c6426888f.tar.gz
askbot-050b65ab3b0f1914772e382678df978c6426888f.tar.bz2
askbot-050b65ab3b0f1914772e382678df978c6426888f.zip
Add django_compressor to compress CSS, JS and automatically compile LESS
Diffstat (limited to 'askbot/skins')
-rw-r--r--askbot/skins/loaders.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/askbot/skins/loaders.py b/askbot/skins/loaders.py
index 367433eb..f46f0f07 100644
--- a/askbot/skins/loaders.py
+++ b/askbot/skins/loaders.py
@@ -57,17 +57,17 @@ class SkinEnvironment(CoffinEnvironment):
def get_extra_css_link(self):
"""returns either the link tag (to be inserted in the html head element)
or empty string - depending on the existence of file
- SKIN_PATH/media/style/extra.css
+ SKIN_PATH/media/style/extra.less
"""
url = None
if django_settings.ASKBOT_CSS_DEVEL is True:
url = utils.get_media_url('style/extra.less', ignore_missing = True)
rel = "stylesheet/less"
if url is None:
- url = utils.get_media_url('style/extra.css', ignore_missing = True)
+ url = utils.get_media_url('style/extra.less', ignore_missing = True)
rel = "stylesheet"
if url is not None:
- return '<link href="%s" rel="%s" type="text/css" />' % (url, rel)
+ return '<link href="%s" rel="%s" type="text/less" />' % (url, rel)
return ''
def load_skins():