Simple update.
[turniej.git] / apps / poetry / templates / poetry / poet.html
index 053dce5..7947a66 100644 (file)
@@ -1,10 +1,13 @@
-{% extends "base.html" %}
-{% load url from future %}
+{% extends "edition1/base.html" %}
+
+
+{% block "extratitle" %}: {{ poet.name }}{% endblock %}
+
 
 {% block "body" %}
 
 <h1>
-<a href='/'><img src="{{ STATIC_URL }}img/turniej-maly.png" style='float:left; margin-right: 10px; margin-top: -13px' /></a>
+<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>
 
 <p><a href="{% url 'poetry_main' %}">Zobacz wszystkich autorów.</a></p>
 
+<div class="poet-description">
+
 <p>Autor programu: <strong>{{ poet.author }}</strong></p>
 
-<p>{{ poet.description }}</p>
+{{ poet.description|linebreaks }}
 
-<p>Kod źródłowy: <strong>{{ poet.url }}</strong></p>
+<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>
 
-<p>Ostatnio opublikowane utwory:</p>
+</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>