diff options
author | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2010-03-30 14:22:01 -0400 |
---|---|---|
committer | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2010-03-30 14:22:01 -0400 |
commit | 9382f29e650f8d239f5a40fca3fedc89ebd834b3 (patch) | |
tree | d524430a4206ba6bbf655889e6c4403b0353b956 /forum | |
parent | 6798327d1ced81c617ca1d66792c9a347d5c9f08 (diff) | |
download | askbot-9382f29e650f8d239f5a40fca3fedc89ebd834b3.tar.gz askbot-9382f29e650f8d239f5a40fca3fedc89ebd834b3.tar.bz2 askbot-9382f29e650f8d239f5a40fca3fedc89ebd834b3.zip |
fixed unicode tags and link color in posts
Diffstat (limited to 'forum')
-rwxr-xr-x | forum/forms.py | 4 | ||||
-rwxr-xr-x | forum/skins/default/media/style/style.css | 20 | ||||
-rwxr-xr-x | forum/skins/default/templates/footer.html | 2 |
3 files changed, 23 insertions, 3 deletions
diff --git a/forum/forms.py b/forum/forms.py index 0a68bb85..d577e69a 100755 --- a/forum/forms.py +++ b/forum/forms.py @@ -68,9 +68,9 @@ class TagNamesField(forms.CharField): if len(tag) > 20: raise forms.ValidationError(_('tags must be shorter than 20 characters')) #take tag regex from settings - tagname_re = re.compile(r'[a-z0-9]+') + tagname_re = re.compile(r'[a-z0-9\w._#-]+',re.UNICODE) if not tagname_re.match(tag): - raise forms.ValidationError(_('please use following characters in tags: letters \'a-z\', numbers, and characters \'.-_#\'')) + raise forms.ValidationError(_('please use letters, numbers, and characters \'.-_#\'')) # only keep one same tag if tag not in list_temp and len(tag.strip()) > 0: list_temp.append(tag) diff --git a/forum/skins/default/media/style/style.css b/forum/skins/default/media/style/style.css index 4f6b366b..2dd9260e 100755 --- a/forum/skins/default/media/style/style.css +++ b/forum/skins/default/media/style/style.css @@ -2454,3 +2454,23 @@ p.signup_p { list-style-position: outside; margin: 0; } + +/* a workaround to set link colors correctly */ +.answer-body a { + color:#0000ff; +} +.question-body a { + color:#0000ff; +} +.question-body li { + margin-bottom:0.7em; +} +.answer-body li {$ + margin-bottom:0.7em; +} +.wmd-preview a { + color:#0000ff; +} +.wmd-preview li { + margin-bottom:0.7em; +} diff --git a/forum/skins/default/templates/footer.html b/forum/skins/default/templates/footer.html index cb46c2cc..9b7c5d98 100755 --- a/forum/skins/default/templates/footer.html +++ b/forum/skins/default/templates/footer.html @@ -21,7 +21,7 @@ {% endspaceless %} </div> <p> - <a href="http://askbot.net" target="_blank"> + <a href="http://askbot.org" target="_blank"> powered by ASKBOT </a> </p> |