From faa9e6df215244087e97f7048bd45fff69517051 Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Mon, 28 Sep 2015 13:35:38 +0200 Subject: [PATCH] fix product metadata --- app/records/static/css/dig2.css | 4 ++-- app/templates/shop/product.html | 19 +++++++++---------- 2 files changed, 11 insertions(+), 12 deletions(-) diff --git a/app/records/static/css/dig2.css b/app/records/static/css/dig2.css index 45eec77..0373b84 100644 --- a/app/records/static/css/dig2.css +++ b/app/records/static/css/dig2.css @@ -62,7 +62,7 @@ hr { } .audio { - margin-top: 2em; + margin: 2em 0em 2em 0em; } .placeholder { @@ -85,5 +85,5 @@ hr { box-shadow: 0 1px 2px rgba(0, 0, 0, 0.075); border: 1px solid #dddddd; border-radius: 4px; - + } diff --git a/app/templates/shop/product.html b/app/templates/shop/product.html index 08f89db..38dc9e4 100644 --- a/app/templates/shop/product.html +++ b/app/templates/shop/product.html @@ -97,8 +97,15 @@ $(function () { {% editable product.content %} {{ product.content|richtext_filters|safe }} {% endeditable %} -
  • {% trans "Artist" %}: {{ product.record.artist }}
  • -
  • {% trans "Title" %}: {{ product.record.title }}
  • + + {% if product.record.audio_file %} +
    + +
    + {% endif %} +
  • {% trans "Label:" %} {{ product.record.label }} @@ -143,14 +150,6 @@ $(function () {
  • {% include "shop/includes/price.html" %}
  • {% endif %} - {% if product.record.audio_file %} -
    - -
    - {% endif %} - -- 2.39.5