forgotten stuff
[turniej.git] / apps / poetry / templates / poetry / contest.html
diff --git a/apps/poetry/templates/poetry/contest.html b/apps/poetry/templates/poetry/contest.html
new file mode 100644 (file)
index 0000000..9f153b9
--- /dev/null
@@ -0,0 +1,39 @@
+{% extends "base.html" %}
+{% load url from future %}
+
+{% block "body" %}
+
+<h1>
+<a href='/'><img src="{{ STATIC_URL }}img/turniej-maly.png" style='float:left; margin-right: 10px; margin-top: -13px' /></a>
+Turniej Elektrybałtów: utwory wybrane do konkursu</h1>
+
+<div class="social">
+<span style="position:relative; top: -5px;" >
+    <div class="fb-like" data-href="http://turniej.wolnelektury.pl" data-send="false" data-layout="button_count" data-width="150" data-show-faces="false"></div>
+</span>
+<g:plusone annotation="bubble" href="http://turniej.wolnelektury.pl"></g:plusone>
+<script>
+  new nk_fajne({
+    url: "http://turniej.wolnelektury.pl",
+    type: 4,
+    color: 0,
+    title: "Turniej Elektrybałtów",
+    image: "http://turniej.wolnelektury.pl/turniej.png",
+    description: "Turniej Elektrybałtów - otwarty konkurs na najlepszego automatycznego poetę."
+  });
+</script>
+</div>
+
+<div style='clear: both'></div>
+
+{% for poet in poets %}
+    <h2><a href="{{ poet.get_absolute_url }}">{{ poet }}</a></h2>
+    <ul class='plain'>
+    {% for poem in poet.contest_poems %}
+        <li><a href="{{ poem.get_absolute_url }}">{{ poem }}</a></li>
+    {% endfor %}
+    </ul>
+{% endfor %}
+</ul>
+
+{% endblock %}