]> git.parisson.com Git - diggersdigest.git/commitdiff
Add Record information on product page
authorThomas Fillon <thomas@parisson.com>
Tue, 8 Sep 2015 08:55:28 +0000 (10:55 +0200)
committerThomas Fillon <thomas@parisson.com>
Tue, 8 Sep 2015 08:55:28 +0000 (10:55 +0200)
diggersdigest/templates/index.html
diggersdigest/templates/shop/product.html

index 461baf19e00d7f7835978badcedd80d3792fa329..bfad59d60263ac58d9fe6d9d875b1b2e90621de3 100644 (file)
 </ul>
 {% endblocktrans %}
 {% load blog_tags records_tags keyword_tags i18n mezzanine_tags %}
-<div class="col-xs-12 col-md-8"><!-- Showcase-->
+<div class="col-xs-6 col-md-6"><!-- Showcase-->
 <h2>{% trans "Showcase" %}</h2>
 </div><!-- /Showcase -->
-<div class="col-xs-6 col-md-4"><!-- Latest Releases -->
+<div class="col-xs-6 col-md-6"><!-- Latest Releases -->
 {% shop_recent_products 9 as recent_products %}
 {% if recent_products %}
 <h2>{% trans "Latest Releases" %}</h2>
-{% for product in recent_products %}
-    <div class="col-xs-2 col-md-4 product-thumb">
+<div class="row">
+  {% for product in recent_products %}
+    <div class="col-xs-4 col-md-4 product-thumb ">
     <a href="{{ product.get_absolute_url }}" class="thumbnail">
         {% if product.image %}
           <img src="{{ MEDIA_URL }}{% thumbnail product.image 148 148 %}">
@@ -47,6 +48,7 @@
     </a>
     </div>
 {% endfor %}
+</div>
 {% endif %}
 </div><!-- /Latest Releases -->
 <div><!-- Recent Posts -->
index 4ef715d0f3439a31714861f69efc9bc8f30582a5..4f2e8831e6a5dcccf3f7ab29b31880f6efbdb6cd 100644 (file)
@@ -1,5 +1,5 @@
 {% extends "shop/base.html" %}
-{% load staticfiles mezzanine_tags shop_tags rating_tags i18n %}
+{% load staticfiles mezzanine_tags shop_tags records_tags rating_tags i18n %}
 
 {% block meta_title %}{{ product.meta_title }}{% endblock %}
 {% block body_id %}category{% endblock %}
@@ -80,6 +80,38 @@ $(document).ready(function() {
 {% endspaceless %}
 {% endif %}
 
+
+<ul>
+  <li><strong>{{ product.records.first.artist }}</strong></li>
+  <li><em>{{ product.records.first.title }}</em></li>
+  <li>
+    {% trans "Label:" %}
+    {{ product.records.first.label }}
+  </li>
+  <li>
+    {% trans "Country:" %}
+    {{ product.records.first.country }}
+   </li>
+  {% if product.records.first.release_year %}
+  <li>
+    {% trans "Release year:" %}
+    {{ product.records.first.release_year }}
+  </li>
+  {% else %}
+  <li>
+    {% trans "Release decade:" %}
+    {{ product.records.first.release_decade }}</li>
+  {% endif %}
+  <li>
+    {% trans "Cover:" %}
+    {{ product.records.first.cover_condition }} </li>
+  <li>
+    {% trans " Vinyl:" %}
+    {{ product.records.first.vinyl_condition }} </li>
+
+</ul>
+
+
 {% editable product.content %}
 {{ product.content|richtext_filters|safe }}
 {% endeditable %}