Displaying links to Wikipedia in templates.
authorMarek Stępniowski <marek@stepniowski.com>
Thu, 23 Apr 2009 20:29:08 +0000 (22:29 +0200)
committerMarek Stępniowski <marek@stepniowski.com>
Thu, 23 Apr 2009 20:29:08 +0000 (22:29 +0200)
wolnelektury/templates/catalogue/book_detail.html
wolnelektury/templates/catalogue/tagged_object_list.html

index a31d8c4..b9e95d0 100644 (file)
                 <li><a href="{{ extra_info.about }}">Lektura na wiki projektu</a></li>
                 <li><a href="{{ extra_info.source_url }}">Lektura w CBN Polona</a></li>
                 {% if book.gazeta_link %}
-                <li><a href="{{ book.gazeta_link }}">Lektura w Lektury.Gazeta.pl</a></li>
+                <li><a href="{{ book.gazeta_link }}">Opis lektury w Lektury.Gazeta.pl</a></li>
+                {% endif %}
+                {% if book.wiki_link %}
+                <li><a href="{{ book.wiki_link }}">Opis lektury w Wikipedii</a></li>
                 {% endif %}
             </ul>
         </div>
index d1d0b56..06e437d 100644 (file)
@@ -33,6 +33,9 @@
         {% if last_tag.gazeta_link %}
             <p><a href="{{ last_tag.gazeta_link }}">{{ last_tag }} w Lektury.Gazeta.pl</a></p>
         {% endif %}
+        {% if last_tag.wiki_link %}
+            <p><a href="{{ last_tag.wiki_link }}">{{ last_tag }} w Wikipedii</a></p>
+        {% endif %}
         <ol>
         {% for book in object_list %}
             <li>