promobox, some fixes
[prawokultury.git] / migdal / templates / migdal / entry / entry_promobox.html
index 110c1cf..0eb9fac 100755 (executable)
@@ -1,13 +1,15 @@
 {% load i18n %}
 
 
-<li class="promobox-item" style="
+<li class="promobox-item"{% if counter == 1 %}class="active"{% endif %}
+    style="
+    {% if counter != 1 %}display: none;{% endif %}
     {% if object.image %}
         background: url('{{ object.image.url }}');
         background-size:100%;
         background-position: 50% 50%;
     {% else %}
-        background: white;
+        background: black;
     {% endif %}
 ">