2 <div class="resources" id="resources-list">
4 <style type="text/css">
5 {% block extrastyles %}
6 {% for cat in categories %}
12 <div class="categories">
13 <h2 class="title">{{ content.filter_title }}</h2>
16 {% for cat in categories %}
17 <li class="{{ cat.get_css_class }} filter-item" data-id="{{ cat.pk }}">
18 <a href="#{{ cat.pk }}">{{ cat.translation.title }}</a>
22 <a href="#" class="clear">Show all</a>
26 {% for r in resources %}
27 <div class="resource-wrapper {% cycle 'first' '' '' %}" data-category="{{ r.category.pk }}">
28 <div class="resource {{ r.category.get_css_class }}"
29 id="{{ r.get_html_id }}"
30 data-category="{{ r.category.pk }}"
33 <div class="front-content">
35 <div class="date">{{ r.published_on|date:"d.m.Y" }}</div>
36 <div class="title">{{ r.translation.title }}</div>
37 <div class="category">{% trans "filed under" %} {{ r.category.translation.title }}</div>
39 <div class="description">
40 <p>{{ r.translation.description }}</p>
42 <div class="download">
43 <a class="resource-download" target="_blank" href="{{ r.media_file.get_absolute_url }}">
44 <span class="download-image"></span>
45 <span>{% trans "DOWNLOAD" %} {{ r.get_filetype }}</span>
51 <div style='clear:both'></div>