diff options
author | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2011-01-09 22:50:30 -0500 |
---|---|---|
committer | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2011-01-09 22:50:30 -0500 |
commit | 0245d83d7ca1c3d4f37e57d664f7414988e2493d (patch) | |
tree | c21b7ccfb6f95b58fc9d67561ac853ce53a26722 | |
parent | 7fba4bc966522758cd73dfd6c342cafb8ce793e3 (diff) | |
download | askbot-0245d83d7ca1c3d4f37e57d664f7414988e2493d.tar.gz askbot-0245d83d7ca1c3d4f37e57d664f7414988e2493d.tar.bz2 askbot-0245d83d7ca1c3d4f37e57d664f7414988e2493d.zip |
re-introduced template paginator to fix a glitch in the live search and made a few more fixes to the search bar css
-rw-r--r-- | askbot/__init__.py | 2 | ||||
-rw-r--r-- | askbot/models/question.py | 1 | ||||
-rwxr-xr-x | askbot/skins/default/media/style/style.css | 6 | ||||
-rw-r--r-- | askbot/skins/default/templates/blocks/paginator.html | 4 | ||||
-rw-r--r-- | askbot/views/readers.py | 2 |
5 files changed, 9 insertions, 6 deletions
diff --git a/askbot/__init__.py b/askbot/__init__.py index 3f236e73..456a8d99 100644 --- a/askbot/__init__.py +++ b/askbot/__init__.py @@ -19,4 +19,4 @@ def get_version(): """returns version of the askbot app this version is meaningful for pypi only """ - return '0.6.56' + return '0.6.57' diff --git a/askbot/models/question.py b/askbot/models/question.py index fecdef13..2a2a36f0 100644 --- a/askbot/models/question.py +++ b/askbot/models/question.py @@ -55,7 +55,6 @@ class QuestionManager(models.Manager): #DATED COMMENT #todo: this is confusing - last_edited_at field #is used as an indicator whether question has been edited - #in template askbot/skins/default/templates/post_contributor_info.html #but in principle, post creation should count as edit as well question.last_edited_by = question.author question.last_edited_at = added_at diff --git a/askbot/skins/default/media/style/style.css b/askbot/skins/default/media/style/style.css index d8ebb430..9ea83ee9 100755 --- a/askbot/skins/default/media/style/style.css +++ b/askbot/skins/default/media/style/style.css @@ -272,7 +272,7 @@ blockquote { background-color: #cccccc;/*888a85; /*#e9b96e;*/ width:700px; border: 1px solid #aaaaaa; - padding: 4px 5px 4px 5px; + padding: 4px 5px 4px 4px; } #searchBar .searchInput, #searchBar .searchInputCancelable { @@ -643,7 +643,7 @@ a:hover.medal { float: left; height: 20px; line-height: 22px; - margin: 5px 4px 0 0; + margin: 5px 0 0 4px; padding: 0 11px 0 11px; text-decoration: none; } @@ -652,7 +652,7 @@ a:hover.medal { float: left; font-weight: bold; color: #777; - margin: 8px 4px 0 4px; + margin: 8px 0 0 4px; } .tabsB a { diff --git a/askbot/skins/default/templates/blocks/paginator.html b/askbot/skins/default/templates/blocks/paginator.html new file mode 100644 index 00000000..9782407f --- /dev/null +++ b/askbot/skins/default/templates/blocks/paginator.html @@ -0,0 +1,4 @@ +<!-- paginator.html --> +{% import "macros.html" as macros %} +{{ macros.paginator(paginator_context)}} +<!-- end paginator.html --> diff --git a/askbot/views/readers.py b/askbot/views/readers.py index 78a2ddd7..b6e6d2bf 100644 --- a/askbot/views/readers.py +++ b/askbot/views/readers.py @@ -153,7 +153,7 @@ def questions(request): } if q_count > search_state.page_size: - paginator_tpl = ENV.get_template('paginator.html') + paginator_tpl = ENV.get_template('blocks/paginator.html') #todo: remove this patch on context after all templates are moved to jinja paginator_context['base_url'] = request.path + '?sort=%s&' % search_state.sort data = { |