bb31eaeac41456cc3c221481a367011078001d73
[edumed.git] / catalogue / templates / catalogue / snippets / carousel.html
1 {% load thumbnail %}
2 {% url 'catalogue_lessons' as lessons %}
3 <section id="catalogue-carousel">
4     <ul id="catalogue-carousel-links">
5         {% for section in object_list %}
6         <li style="{% if section.pic %}{% thumbnail section.pic '460x235' crop='center' as th %}background-image: url('{{ th.url }}');{% endthumbnail %}{% endif %}">
7             <a href="{{ lessons }}#gimnazjum_{{ section.slug }}" class="catalogue-carousel-link">
8                 <div class="catalogue-carousel-note">
9                     <div>
10                         <p>
11                         <strong>{{ section }}</strong>
12                         {{ section.summary }}
13                         <span class="more">zobacz &rarr;</span>
14                         </p>
15                     </div>
16                 </div>
17             </a>
18             <a class="attribution" href="{{ section.pic_src }}">fot. {{ section.pic_attribution }}</a>
19         </li>    
20         {% endfor %}
21     </ul>
22     <ul id="catalogue-carousel-switcher">
23         {% for section in object_list %}
24             <li><a href="{{ section.get_absolute_url }}">{{ section }}</a></li>
25         {% endfor %}
26     </ul>
27 </section>