diff options
author | Adolfo Fitoria <adolfo.fitoria@gmail.com> | 2013-03-19 12:04:06 -0600 |
---|---|---|
committer | Adolfo Fitoria <adolfo.fitoria@gmail.com> | 2013-03-19 12:04:06 -0600 |
commit | 6f5cf3980dd30aa493ef1ffef0aaa63eb201dc70 (patch) | |
tree | 5251e81192bee04e1ed2407cf2ca37bf5f1d74bc | |
parent | affca0a830167de6385549f76d71e3a4ee186150 (diff) | |
parent | bd0dc34370eaf761afc661e60b61bd915ad582d2 (diff) | |
download | askbot-6f5cf3980dd30aa493ef1ffef0aaa63eb201dc70.tar.gz askbot-6f5cf3980dd30aa493ef1ffef0aaa63eb201dc70.tar.bz2 askbot-6f5cf3980dd30aa493ef1ffef0aaa63eb201dc70.zip |
Merge branch 'master' of github.com:ASKBOT/askbot-devel
-rw-r--r-- | askbot/media/style/style.less | 7 | ||||
-rw-r--r-- | askbot/skins/loaders.py | 8 | ||||
-rw-r--r-- | askbot/templates/widgets/tag_selector.html | 2 |
3 files changed, 11 insertions, 6 deletions
diff --git a/askbot/media/style/style.less b/askbot/media/style/style.less index 64bc584a..e5fdb8fd 100644 --- a/askbot/media/style/style.less +++ b/askbot/media/style/style.less @@ -753,7 +753,7 @@ body.anon { .box { background: #fff; - padding: 4px 0px 10px 0px; + padding: 4px 0px 10px 1px; width:200px; overflow: hidden; @@ -1401,9 +1401,7 @@ ul.tags.marked-tags li, } #tagSelector div.inputs { - clear: both; - float: none; - margin-bottom:10px; + margin: 6px 0 12px 0; } .tags-page ul.tags li, @@ -2944,7 +2942,6 @@ a:hover.medal { } .follow-toggle,.submit { - border:0 !important; font-weight:bold; line-height:26px; margin-top:-2px; diff --git a/askbot/skins/loaders.py b/askbot/skins/loaders.py index 50276f34..c7854a1d 100644 --- a/askbot/skins/loaders.py +++ b/askbot/skins/loaders.py @@ -5,6 +5,7 @@ from django.template import TemplateDoesNotExist from django.http import HttpResponse from django.utils import translation from django.conf import settings as django_settings +from django.core.exceptions import ImproperlyConfigured from coffin.common import CoffinEnvironment from jinja2 import loaders as jinja_loaders from jinja2.exceptions import TemplateNotFound @@ -81,7 +82,12 @@ SKINS = load_skins() def get_skin(request = None): """retreives the skin environment for a given request (request var is not used at this time)""" - return SKINS[askbot_settings.ASKBOT_DEFAULT_SKIN] + skin_name = askbot_settings.ASKBOT_DEFAULT_SKIN + try: + return SKINS[skin_name] + except KeyError: + msg_fmt = 'skin "%s" not found, check value of "ASKBOT_EXTRA_SKINS_DIR"' + raise ImproperlyConfigured(msg_fmt % skin_name) def get_askbot_template(template, request = None): """ diff --git a/askbot/templates/widgets/tag_selector.html b/askbot/templates/widgets/tag_selector.html index 7c6fe92e..ba304d2c 100644 --- a/askbot/templates/widgets/tag_selector.html +++ b/askbot/templates/widgets/tag_selector.html @@ -14,6 +14,7 @@ "remove '%(tag_name)s' from the list of interesting tags"| format(tag_name = tag_name) #} + <div class="clearfix"></div> <div class="inputs"> <input id="interestingTagInput" autocomplete="off" type="text"/> <input id="interestingTagAdd" type="submit" value="{% trans %}add{% endtrans %}"/> @@ -49,6 +50,7 @@ "remove '%(tag_name)s' from the list of ignored tags"| format(tag_name = tag_name) #} + <div class="clearfix"></div> <div class="inputs"> <input id="subscribedTagInput" autocomplete="off" type="text"/> <input id="subscribedTagAdd" type="submit" value="{% trans %}add{% endtrans%}"/> |