Ready.
[static.git] / content / index.html
1 ---
2 extends: base.j2
3 ---
4
5 {% macro pozycja(p) -%}
6 {% if p == 1 %}weak{% elif p == 2 %}average{% else %}strong{% endif %}<br>
7 {% for i in range(0, p) %}<img src="{{ media_url('images/listek-t.png') }}">{% endfor %}
8 {%- endmacro %}
9
10
11
12 {% block full_title %}Right to Culture: Future Scenarios{% endblock %}
13
14 {% block body %}
15
16 <header>
17 <img src="{{ media_url('images/roza-mala.png') }}"/>
18 <h1>Right to Culture:<br>Future Scenarios</h1>
19 <div style="clear:both"></div>
20 </header>
21
22
23 {% for grp, res_walker in site.content.walk_section_groups() -%}
24     {%- if grp.name != 'section' -%}
25         <section class="{{ grp.name }}">
26         {%- if grp.name == 'main' -%}
27             <h2>Scenarios</h2>
28             <a id="b-author">position of <span>authors</span></a><a id="b-user">position of <span>users</span></a><a id="b-inter">position of <span>intermediaries</span></a>
29             <div class="roza" id="scenarios">
30                 <img src="{{ media_url('images/roza.png') }}" style="display: block; width: 100%">
31                 {%- for res in res_walker  -%}
32                     <a id="roza-{{ res.meta.order }}" href="{{ res.full_url }}" title="{{ res.title }}">
33                     <div class="p-author">{{ pozycja(res.meta.pauthor) }}</div>
34                     <div class="p-user">{{ pozycja(res.meta.puser) }}</div>
35                     <div class="p-inter">{{ pozycja(res.meta.pinter) }}</div></a>
36                 {%- endfor -%}
37             </div>
38
39             </section>
40         {%- else -%}
41             {%- for res in res_walker  -%}
42                 <a href="{{ res.full_url }}"><div>{{ res.meta.title }}
43                     <span class="author">{{ res.meta.author }}</span></div></a>
44             {%- endfor -%}
45         {%- endif -%}
46         {%- if grp.name == "outro" -%}
47             <a href="{{ media_url('right-to-culture-future-scenarios.pdf') }}"><div>Download the PDF version</div></a>
48             <a href="/scenariusze/"><div>Polska wersja</div></a>
49         {%- endif -%}
50         </section>
51     {%- endif -%}
52 {%- endfor %}
53
54
55 <script src="{{ media_url('js/jquery-1.11.0.min.js') }}"></script>
56 <script src="{{ media_url('js/base.js') }}"></script>
57
58
59 {% endblock %}