]> git.parisson.com Git - diggersdigest.git/commitdiff
fix img and titles
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Thu, 24 Sep 2015 19:42:46 +0000 (21:42 +0200)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Thu, 24 Sep 2015 19:42:46 +0000 (21:42 +0200)
app/records/static/css/dig2.css
app/templates/pages/category.html
app/templates/shop/product.html

index be25ba5cb2c08cdeffd8a30a3d75627e0b54d332..c2b078c6871d0bd415f73648c4028484ffc31e29 100644 (file)
@@ -64,7 +64,7 @@ hr {
 
 .placeholder {
         display:block;
-        height:148px;
+        height:250px;
         background: white;
 }
 
index d20803500f28e310aeb1066660cb9fab91eca802..454cbe624ddfc96040b24ca6e36fd0aabcb46533 100644 (file)
     <div class="col-xs-6 col-sm-4 col-lg-3 product-thumb slim_margins">
     <a href="{{ product.get_absolute_url }}" class="thumbnail">
         {% if product.image %}
-         <img src="{{ MEDIA_URL }}{% thumbnail product.image 148 148 %}">
+         <img src="{{ MEDIA_URL }}{% thumbnail product.image 250 250 %}">
         {% else %}
          <div class="placeholder"></div>
         {% endif %}
          <div class="caption">
-          <h6>{{ product }}</h6>
+          <h6>{{ product.record }}</h6>
           <div class="price-info">
             {% if product.variations.all %}
             {% with product.variations.all as variations and True as category %}
index aa628ef7dc06089456abee3acdb8f1e958b2c531..4ddffbc350e79af925c0336ad21783d8cb04dd36 100644 (file)
@@ -55,7 +55,7 @@ $(function () {
 
 {% block title %}
 <span class="bg-white">
-{% editable product.title %}{{ product.title }}{% endeditable %}
+{{ product.record }}
 </span>
 {% endblock %}
 
@@ -70,7 +70,7 @@ $(function () {
     {% for image in images %}
     <li id="image-{{ image.id }}-large"{% if not forloop.first %}style="display:none;"{% endif %}>
         <a class="product-image-large" href="{{ MEDIA_URL }}{{ image.file }}">
-            <img alt="{{ image.description }}" src="{{ MEDIA_URL }}{% thumbnail image.file 0 300 %}" class="img-thumbnail img-responsive col-xs-12">
+            <img alt="{{ image.description }}" src="{{ MEDIA_URL }}{% thumbnail image.file 450 450 %}" class="img-thumbnail img-responsive col-xs-12">
         </a>
     </li>
     {% endfor %}