Commits

Jorge Ezequiel Diaz Marquez committed 6308796

add paginator in catalog

Comments (0)

Files changed (4)

statics/templates/_paginator.html

 <div class="paginador ma w30" id="global_paginator">
     {% ifnotequal paginator.page_range|length 1 %}
         {% for p in paginator.page_range %}
-            {% if forloop.first %}<ul class="pagination-pages oh">
+            {% if forloop.first %}<ul style="border:none" class="pagination-pages oh ">
                 {% if page_obj.has_previous %}
                     <li class="fl ma5 bss bw1 pd5 c6 rd3"><a class="c6" href="?page=1">&laquo;</a></li>
                     <li class="fl ma5 bss bw1 pd5 c6 rd3"><a class="c6" href="?page={{ page_obj.previous_page_number }}">&lsaquo;</a></li>
     {% endifnotequal %}
 </div>
 {% endif %}
+

statics/templates/base.html

 									<li class="no-border"><a target="_blank" href="http://www.youtube.com/cotishopfiesta"><img src="{{ config.MEDIA_URL }}images/mini-ico-yt.jpg" /></a></li>
 								</ul>
 
-                                <div class="clr fr ma10t" style="width:220px;">
-                                    <iframe src="http://www.google.com/talk/service/badge/Show?tk=z01q6amlqkpkp1286nrlqab2ads4jg5a7infmaj7lusb5mh64miutbf27v0v5r4jr1h9n8ctarj4j4krrb88t7felh8gq49df62o7vs68gmg5dtk49qfildqs6496bl22pm267aj8ovdj30v6k37l28iv2askvarb34iju79kppku0korake19m3k1b72dtv5vp44619c12soj6n62sahqmv7bggg&amp;w=220&amp;h=18" allowtransparency="true" frameborder="0" height="18" width="220"></iframe>
+                                <div class="clr fr ma10t" style="width:250px;">
+                                    <iframe src="http://www.google.com/talk/service/badge/Show?tk=z01q6amlqkpkp1286nrlqab2ads4jg5a7infmaj7lusb5mh64miutbf27v0v5r4jr1h9n8ctarj4j4krrb88t7felh8gq49df62o7vs68gmg5dtk49qfildqs6496bl22pm267aj8ovdj30v6k37l28iv2askvarb34iju79kppku0korake19m3k1b72dtv5vp44619c12soj6n62sahqmv7bggg&amp;w=250&amp;h=18" allowtransparency="true" frameborder="0" height="18" width="250"></iframe>
                                 </div>
 
 								<div class="clear"></div>

statics/templates/djcatalog/base.html

 							</div>
 							<div class="clear"></div>
                         </div>
-
+                       {% block product_catalog %}
+                       {% comment %}
                         <!-- todos los productos -->
-						<div class="todos-productos" id="carousel_catalog">
+                        <div class="todos-productos" id="carousel_catalog">
                             <ul>
                                 {% for product in product_list %}
                                 {% with product.get_first_image as media %}
                                 <li><a href="{{ product.get_absolute_url }}" pos="{{ forloop.counter }}"><img src="{% if media.thumbnail %}{{ media.thumbnail.url }}{% endif %}" alt="{{ product.description }}" title="{{ product.name }}"/></a></li>
                                 {% endwith %}
                                 {% endfor %}
-							</ul>
+                            </ul>
                             <div class="clear"></div>
                         </div>
                         <!-- end todos los productos -->
-
-					</div>
+                       {% endcomment %}
+                       {% endblock %}
+                        </div>
                     <!-- end general categorias -->
 
                 </div>

statics/templates/djcatalog/catalog_list.html

 {% extends 'djcatalog/base.html' %}
+{% block product_catalog %}
+<!-- todos los productos -->
+<div class="todos-productos" id="carousel_catalog">
+    <ul>
+        {% for product in object_list %}
+        {% with product.get_first_image as media %}
+        <li><a href="{{ product.get_absolute_url }}" pos="{{ forloop.counter }}"><img src="{% if media.thumbnail %}{{ media.thumbnail.url }}{% endif %}" alt="{{ product.description }}" title="{{ product.name }}"/></a></li>
+        {% endwith %}
+        {% endfor %}
+    </ul>
+    <div class="clear"></div>
+</div>
+<!-- end todos los productos -->
+<div class="oh">{% include "_paginator.html" %}</div>
+{% endblock %}
+