initial commit
[django-migdal.git] / migdal / templates / migdal / entry / entry_promobox.html
1 {% load i18n thumbnail %}
2
3
4 <li class="promobox-item{% if counter == 1 %} active{% endif %}"
5     style="
6     {% if counter != 1 %}display: none;{% endif %}
7     {% if object.image %}
8         background: url('{% thumbnail object.image "700x1000" as thumb %}{{ thumb.url }}{% empty %}{{ object.image.url }}{% endthumbnail %}');
9         background-size:100%;
10         background-position: 50% 50%;
11     {% else %}
12         background: black;
13     {% endif %}
14 ">
15
16 <a class="promobox-link" href="{{ object.get_absolute_url }}">
17
18
19 <div class="promobox-info">
20 <div class="clip">
21 <h2>{{ object.title }}</h2>
22
23 <div class="lead">
24 {{ object.lead|striptags|truncatewords:8 }}
25 </div>
26 </div>
27 </div>
28
29 </a>
30 </li>