fnp
/
prawokultury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
promobox, some fixes
[prawokultury.git]
/
migdal
/
templates
/
migdal
/
entry
/
entry_promobox.html
diff --git
a/migdal/templates/migdal/entry/entry_promobox.html
b/migdal/templates/migdal/entry/entry_promobox.html
index
110c1cf
..
0eb9fac
100755
(executable)
--- a/
migdal/templates/migdal/entry/entry_promobox.html
+++ b/
migdal/templates/migdal/entry/entry_promobox.html
@@
-1,13
+1,15
@@
{% load i18n %}
{% 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 %}
{% if object.image %}
background: url('{{ object.image.url }}');
background-size:100%;
background-position: 50% 50%;
{% else %}
- background:
white
;
+ background:
black
;
{% endif %}
">
{% endif %}
">