]> git.parisson.com Git - diggersdigest.git/commitdiff
add placeholder-audio
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Fri, 25 Sep 2015 13:38:06 +0000 (15:38 +0200)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Fri, 25 Sep 2015 13:38:06 +0000 (15:38 +0200)
app/diggersdigest/settings.py
app/records/static/css/dig2.css
app/templates/shop/product.html

index b0bc74825a93816c7712f2fe49f020c86d473d5c..f7fdca23747c2821e81de6e86b94a5a1af75aa62 100644 (file)
@@ -364,9 +364,9 @@ INSTALLED_APPS = (
     "mezzanine.twitter",
     "mezzanine.accounts",
     "mezzanine.mobile",
-    "records",
-    'paypal.standard.ipn',
     "payments.multipayments",
+    'paypal.standard.ipn',
+    "records",
 )
 
 # List of processors used by RequestContext to populate the context.
index 608cdf80b5db3a3141c7a7eb973118484ea548a4..60317c8918602d1419e2cc4661478807ea97319d 100644 (file)
@@ -72,3 +72,9 @@ hr {
 .unavailable-msg {
     font-weight: bold;
 }
+
+.placeholder-audio {
+    display:block;
+    height:25px;
+    background: white;
+}
index 4ddffbc350e79af925c0336ad21783d8cb04dd36..c53f67414bc5178772aa6f61cd33cd5f22a64330 100644 (file)
@@ -141,6 +141,8 @@ $(function () {
     <source src="{{ MEDIA_URL }}{{ product.record.audio_file }}">
 </audio>
 </div>
+{% else %}
+<div class="placeholder-audio"></div>
 {% endif %}
 
 </div>