Rearrange source.
[turniej.git] / src / poetry / templates / poetry / poet.html
diff --git a/src/poetry/templates/poetry/poet.html b/src/poetry/templates/poetry/poet.html
new file mode 100644 (file)
index 0000000..7947a66
--- /dev/null
@@ -0,0 +1,58 @@
+{% extends "edition1/base.html" %}
+
+
+{% block "extratitle" %}: {{ poet.name }}{% endblock %}
+
+
+{% block "body" %}
+
+<h1>
+<a href='{% url "e1_main_page" %}'><img src="{{ STATIC_URL }}img/turniej-maly.png" style='float:left; margin-right: 10px; margin-top: -13px' /></a>
+{{ poet.name }}</h1>
+
+<div>
+<span style="position:relative; top: -5px;" >
+    <div class="fb-like" data-send="false" data-layout="button_count" data-width="150" data-show-faces="false"></div>
+</span>
+<g:plusone annotation="bubble"></g:plusone>
+<script>
+  new nk_fajne({
+    url: "{{ request.build_absolute_uri }}",
+    type: 4,
+    color: 0,
+    title: "{{ poet.name }}",
+    image: "http://turniej.wolnelektury.pl/turniej.png",
+    description: "Turniej Elektrybałtów - konkurs na najlepszego automatycznego poetę."
+  });
+</script>
+</div>
+
+<p><a href="{% url 'poetry_main' %}">Zobacz wszystkich autorów.</a></p>
+
+<div class="poet-description">
+
+<p>Autor programu: <strong>{{ poet.author }}</strong></p>
+
+{{ poet.description|linebreaks }}
+
+<p>Kod źródłowy: <a href="{{ poet.url }}">{{ poet.url }}</a></p>
+
+<a class="tworz" href="{% url 'poetry_new' poet.slug %}">Twórz-że!</a>
+
+</div>
+
+<h2>Utwory w konkursie (<a href="{% url 'poetry_contest' %}">zobacz wszystkie</a>)</h2>
+<ul class='plain'>
+{% for poem in in_contest %}
+    <li><a href="{{ poem.get_absolute_url }}">{{ poem }}</a></li>
+{% endfor %}
+</ul>
+
+<h2>Ostatnio opublikowane utwory:</h2>
+<ul class='plain'>
+{% for poem in last %}
+    <li><a href="{{ poem.get_absolute_url }}">{{ poem }}</a></li>
+{% endfor %}
+</ul>
+
+{% endblock %}