f8ec96c13ec2b81b1cf183524cc24d9e1c76feb2
[turniej.git] / apps / poetry / templates / poetry / poet.html
1 {% extends "edition1/base.html" %}
2 {% load url from future %}
3
4
5 {% block "extratitle" %}: {{ poet.name }}{% endblock %}
6
7
8 {% block "body" %}
9
10 <h1>
11 <a href='{% url "e1_main_page" %}'><img src="{{ STATIC_URL }}img/turniej-maly.png" style='float:left; margin-right: 10px; margin-top: -13px' /></a>
12 {{ poet.name }}</h1>
13
14 <div>
15 <span style="position:relative; top: -5px;" >
16     <div class="fb-like" data-send="false" data-layout="button_count" data-width="150" data-show-faces="false"></div>
17 </span>
18 <g:plusone annotation="bubble"></g:plusone>
19 <script>
20   new nk_fajne({
21     url: "{{ request.build_absolute_uri }}",
22     type: 4,
23     color: 0,
24     title: "{{ poet.name }}",
25     image: "http://turniej.wolnelektury.pl/turniej.png",
26     description: "Turniej Elektrybałtów - konkurs na najlepszego automatycznego poetę."
27   });
28 </script>
29 </div>
30
31 <p><a href="{% url 'poetry_main' %}">Zobacz wszystkich autorów.</a></p>
32
33 <div class="poet-description">
34
35 <p>Autor programu: <strong>{{ poet.author }}</strong></p>
36
37 {{ poet.description|linebreaks }}
38
39 <p>Kod źródłowy: <a href="{{ poet.url }}">{{ poet.url }}</a></p>
40
41 <a class="tworz" href="{% url 'poetry_new' poet.slug %}">Twórz-że!</a>
42
43 </div>
44
45 <h2>Utwory w konkursie (<a href="{% url 'poetry_contest' %}">zobacz wszystkie</a>)</h2>
46 <ul class='plain'>
47 {% for poem in in_contest %}
48     <li><a href="{{ poem.get_absolute_url }}">{{ poem }}</a></li>
49 {% endfor %}
50 </ul>
51
52 <h2>Ostatnio opublikowane utwory:</h2>
53 <ul class='plain'>
54 {% for poem in last %}
55     <li><a href="{{ poem.get_absolute_url }}">{{ poem }}</a></li>
56 {% endfor %}
57 </ul>
58
59 {% endblock %}