diff options
author | Adolfo Fitoria <adolfo.fitoria@gmail.com> | 2012-08-29 16:39:40 -0600 |
---|---|---|
committer | Adolfo Fitoria <adolfo.fitoria@gmail.com> | 2012-08-29 16:39:40 -0600 |
commit | 34f21ec2519a819d865583f046235366300176f9 (patch) | |
tree | ed1fd35cdbf53fb155eef5cb61c6ae179979eb40 /askbot/const | |
parent | e00b048a7f850f1b7dfa25988db1fd48cba8b637 (diff) | |
download | askbot-34f21ec2519a819d865583f046235366300176f9.tar.gz askbot-34f21ec2519a819d865583f046235366300176f9.tar.bz2 askbot-34f21ec2519a819d865583f046235366300176f9.zip |
moved forms, partially broken due to Tag/Group model migration
Diffstat (limited to 'askbot/const')
-rw-r--r-- | askbot/const/__init__.py | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/askbot/const/__init__.py b/askbot/const/__init__.py index dfb6995a..44de03af 100644 --- a/askbot/const/__init__.py +++ b/askbot/const/__init__.py @@ -403,5 +403,47 @@ AVATAR_STATUS_CHOICE = ( ('a', _('Uploaded Avatar')),#avatar uploaded locally - with django-avatar app ) +SEARCH_ORDER_BY = ( + ('-added_at', _('date descendant')), + ('added_at', _('date ascendant')), + ('-last_activity_at', _('activity descendant')), + ('last_activity_at', _('activity ascendant')), + ('-answer_count', _('answers descendant')), + ('answer_count', _('answers ascendant')), + ('-score', _('votes descendant')), + ('score', _('votes ascendant')), + ) + +DEFAULT_QUESTION_STYLE = ''' +@import url('http://fonts.googleapis.com/css?family=Yanone+Kaffeesatz:300,400,700'); +body { + overflow: hidden; +} + +#container { + width: 200px; + height: 350px; +} +ul { + list-style: none; + padding: 5px; + margin: 5px; +} +li { + border-bottom: #CCC 1px solid; + padding-bottom: 5px; + padding-top: 5px; +} +li:last-child { + border: none; +} +a { + text-decoration: none; + color: #464646; + font-family: 'Yanone Kaffeesatz', sans-serif; + font-size: 15px; +} +''' + #an exception import * because that file has only strings from askbot.const.message_keys import * |