diff options
author | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2013-03-23 01:23:23 -0400 |
---|---|---|
committer | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2013-03-23 01:23:23 -0400 |
commit | ab0e57d06ba77fabad2424dabb0b1028abf0b28f (patch) | |
tree | 01d60e7f11426a9cc221b8fa69c234269f3f6621 /askbot/skins | |
parent | 050b65ab3b0f1914772e382678df978c6426888f (diff) | |
download | askbot-ab0e57d06ba77fabad2424dabb0b1028abf0b28f.tar.gz askbot-ab0e57d06ba77fabad2424dabb0b1028abf0b28f.tar.bz2 askbot-ab0e57d06ba77fabad2424dabb0b1028abf0b28f.zip |
some additional work on the compressor branch
Diffstat (limited to 'askbot/skins')
-rw-r--r-- | askbot/skins/loaders.py | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/askbot/skins/loaders.py b/askbot/skins/loaders.py index f46f0f07..eb72cf09 100644 --- a/askbot/skins/loaders.py +++ b/askbot/skins/loaders.py @@ -57,17 +57,22 @@ 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.less + SKIN_PATH/media/style/extra.css """ url = None + if django_settings.ASKBOT_CSS_DEVEL is True: - url = utils.get_media_url('style/extra.less', ignore_missing = True) + url = utils.get_media_url('style/extra.less', ignore_missing=True) rel = "stylesheet/less" + + #second try - if there is no extra.less in devel mode - try css if url is None: - url = utils.get_media_url('style/extra.less', ignore_missing = True) + url = utils.get_media_url('style/extra.css', ignore_missing=True) rel = "stylesheet" + if url is not None: return '<link href="%s" rel="%s" type="text/less" />' % (url, rel) + return '' def load_skins(): |