Changeset 234:df6be40513bc
- Timestamp:
- 10/11/10 13:17:13 (3 years ago)
- Branch:
- default
- Location:
- cyclope
- Files:
-
- 4 edited
-
core/collections/frontend_views.py (modified) (4 diffs)
-
core/collections/templates/collections/category_labeled_icon_list.html (modified) (1 diff)
-
core/collections/templates/collections/category_teaser_list.html (modified) (1 diff)
-
templates/cyclope/pagination_block.html (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
cyclope/core/collections/frontend_views.py
r232 r234 57 57 is_default = True 58 58 is_content_view = True 59 59 60 60 def get_response(self, request, host_template, content_object): 61 61 category = content_object … … 84 84 category = content_object 85 85 categorizations_list = category.categorizations.all() 86 87 # TODO(diegoM): ¡¡¡ No escala !!! 88 categorizations_list = sorted(categorizations_list, 89 key=lambda c: c.object_modification_date, 90 reverse=True) 91 92 86 93 paginator = Paginator(categorizations_list, self.items_per_page) 87 94 … … 128 135 verbose_name=_('simplified teaser list of Category members') 129 136 is_region_view = True 130 137 131 138 def get_response(self, request, host_template, content_object): 132 139 category = content_object … … 177 184 is_content_view = True 178 185 is_region_view = True 179 186 180 187 def get_response(self, request, host_template, content_object): 181 188 collection = content_object -
cyclope/core/collections/templates/collections/category_labeled_icon_list.html
r233 r234 13 13 <div class="icon_list_container"> 14 14 15 {% for categorization in categorizations |dictsortreversed:"object_modification_date"%}15 {% for categorization in categorizations %} 16 16 {% join categorization.content_type.app_label "/" categorization.content_type.model "_labeled_icon.html" as template_path %} 17 17 -
cyclope/core/collections/templates/collections/category_teaser_list.html
r233 r234 11 11 {% endcomment %} 12 12 13 {% for categorization in categorizations |dictsortreversed:"object_modification_date"%}13 {% for categorization in categorizations %} 14 14 {% join categorization.content_type.app_label "/" categorization.content_type.model "_teaser.html" as template_path %} 15 15 -
cyclope/templates/cyclope/pagination_block.html
r158 r234 10 10 11 11 <span class="current"> 12 {% trans 'Page' %} {{ page.number }} {% trans 'of' %} {{ page.paginator.num_pages }} .12 {% trans 'Page' %} {{ page.number }} {% trans 'of' %} {{ page.paginator.num_pages }} 13 13 </span> 14 14
Note: See TracChangeset
for help on using the changeset viewer.

