Author: floguy
Date: Sat Oct 4 15:41:05 2008
New Revision: 39
Modified:
trunk/things/templatetags/things_tags.py
Log:
Search terms now show up after you have searched them.
Modified: trunk/things/templatetags/things_tags.py
==============================================================================
--- trunk/things/templatetags/things_tags.py (original)
+++ trunk/things/templatetags/things_tags.py Sat Oct 4 15:41:05 2008
@@ -14,10 +14,16 @@
register.simple_tag(item_url)
def display_ordering(context):
- return {'fields': context['fields'], 'field': context['field'],
- 'descending': context['descending']}
+ return {
+ 'fields': context['fields'],
+ 'field': context['field'],
+ 'descending': context['descending'],
+ }
register.inclusion_tag('things/ordering.html',
takes_context=True)(display_ordering)
def display_search(context):
- return {'search_enabled': context['search_enabled']}
+ return {
+ 'search_enabled': context['search_enabled'],
+ 'terms': context['terms'],
+ }
register.inclusion_tag('things/search.html',
takes_context=True)(display_search)
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pinax-updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/pinax-updates?hl=en
-~----------~----~----~----~------~----~------~--~---