Changeset 155:d66540ebce8f


Ignore:
Timestamp:
08/08/10 19:56:02 (3 years ago)
Author:
nicoechaniz <nico@…>
Branch:
default
Message:

fixed collection categories_hierarchy view

Files:
8 added
6 edited

Legend:

Unmodified
Added
Removed
  • cyclope/core/collections/frontend_views.py

    r150 r155  
    156156        for category in categories: 
    157157            category_list.extend(self._get_categories_nested_list(category)) 
    158         c = RequestContext(request, {'categories': category_list}) 
     158        c = RequestContext(request, {'categories': category_list, 
     159                                     'collection_slug': collection.slug}) 
    159160        t = loader.get_template("collections/collection_categories_hierarchy.html") 
    160161        c['host_template'] = 'cyclope/inline_view.html' 
  • cyclope/core/collections/templates/collections/collection_categories_hierarchy.html

    r41 r155  
    55<script type="text/javascript"> 
    66jQuery(document).ready(function(){ 
    7   $('.collection.categories_hierarchy ul').css('display', 'none'); 
    8   $(".collection.categories_hierarchy ul").first().css('display', 'block'); 
    9   $('.expand_collapse').click(function() { 
     7  $('#{{ collection_slug }}_collection ul').css('display', 'none'); 
     8  $("#{{ collection_slug }}_collection ul").first().css('display', 'block'); 
     9  $('#{{ collection_slug }}_collection .expand_collapse').click(function() { 
    1010    if ($(this).text() == '+') $(this).text('-'); 
    1111    else $(this).text('+'); 
  • cyclope/default_settings.py

    r152 r155  
    11#!/usr/bin/env python 
    2 # -*- coding: UTF-8 -*- 
     2# -*- coding: utf-8 -*- 
    33# 
    44# Copyright 2010 Código Sur - Nuestra América Asoc. Civil / Fundación Pacificar. 
     
    127127    'Folder': [''], 
    128128    'Image': ['.jpg','.jpeg','.gif','.png','.tif','.tiff'], 
    129     'Video': ['.ogg', '.mov','.wmv','.mpeg','.mpg','.avi','.rm',], 
     129    'Video': ['.ogv', '.ogg', '.mov','.wmv','.mpeg','.mpg','.avi','.rm',], 
    130130    'Document': ['.odt', 'docx', '.pdf','.doc','.rtf','.txt', 
    131131                 '.ods', '.xls','.csv'], 
     
    188188HAYSTACK_SITECONF = 'cyclope_project.search_sites' 
    189189HAYSTACK_SEARCH_ENGINE = 'whoosh' 
    190  
  • cyclope/templates/admin/change_form.html

    r147 r155  
    2020<div class="breadcrumbs"> 
    2121     <a href="../../../">{% trans "Home" %}</a> &rsaquo; 
    22      <a href="../../">{{ app_label|capfirst|escape }}</a> &rsaquo; 
    2322     {% if has_change_permission %}<a href="../">{{ opts.verbose_name_plural|capfirst }}</a>{% else %}{{ opts.verbose_name_plural|capfirst }}{% endif %} &rsaquo; 
    2423     {% if add %}{% trans "Add" %} {{ opts.verbose_name }}{% else %}{{ original|truncatewords:"18" }}{% endif %} 
  • demo/cyclope_project/local_settings.py

    r124 r155  
    88#SERVER_EMAIL = "" 
    99EMAIL_USE_TLS = True  # we set this to True for the sample email config 
     10 
     11CYCLOPE_PAGINATION = { 'TEASER' : 3, 'LABELED_ICON' : 5,} 
Note: See TracChangeset for help on using the changeset viewer.