From: Radek Czajka Date: Tue, 19 Nov 2013 13:10:35 +0000 (+0100) Subject: Merge branch 'master' into rwd X-Git-Url: https://git.mdrn.pl/wolnelektury.git/commitdiff_plain/64cf4d889127d7dc3ea893e8a27711468276dc47?hp=--cc Merge branch 'master' into rwd Conflicts: apps/catalogue/templates/catalogue/book_short.html apps/funding/static/funding/funding.css apps/wolnelektury_core/templates/main_page.html --- 64cf4d889127d7dc3ea893e8a27711468276dc47 diff --cc apps/catalogue/templates/catalogue/book_short.html index c8fb9520b,96ceaa6c6..4acefe285 --- a/apps/catalogue/templates/catalogue/book_short.html +++ b/apps/catalogue/templates/catalogue/book_short.html @@@ -27,9 -40,9 +27,9 @@@
-
+
- {% for name, slug in related.tags.author %} - {{ name }}{% if not forloop.last %}, + {% for tag in related.tags.author %} + {% related_tag_name tag %}{% if not forloop.last %}, {% endif %}{% endfor %}{% for title, slug in related.parents %}, {{ title }}{% endfor %}
@@@ -57,29 -56,26 +57,29 @@@
{% spaceless %} + {% trans "Epoch" %}:  - {% for name, slug in related.tags.epoch %} - {{ name }} + {% for tag in related.tags.epoch %} + {% related_tag_name tag %} - {% if not forloop.last %}{% endif %} + {% if not forloop.last %}, {% endif %} {% endfor %} - + + {% trans "Kind" %}:  - {% for name, slug in related.tags.kind %} - {{ name }} + {% for tag in related.tags.kind %} + {% related_tag_name tag %} - {% if not forloop.last %}{% endif %} + {% if not forloop.last %}, {% endif %} {% endfor %} - + + {% trans "Genre" %}:  - {% for name, slug in related.tags.genre %} - {{ name }} + {% for tag in related.tags.genre %} + {% related_tag_name tag %} - {% if not forloop.last %}{% endif %} + {% if not forloop.last %}, {% endif %} {% endfor %} - + {% endspaceless %}
diff --cc apps/wolnelektury_core/templates/main_page.html index 54ca0031f,812094fce..fd51cf371 --- a/apps/wolnelektury_core/templates/main_page.html +++ b/apps/wolnelektury_core/templates/main_page.html @@@ -18,17 -18,18 +18,17 @@@ {% spaceless %} -
-

- {% trans "What's new?" %} -

-
- {% chunk "promo" %} -
-
+
+

{% trans "What's new?" %}

+
+ {% chunk "promo" %} +
+
-

{% trans "Recent publications" %}

+
+

{% trans "Recent publications" %}

- {% cache 60 last-published-on-main %} + {% cache 60 last-published-on-main LANGUAGE_CODE %} {% for book in last_published %} {% book_mini book %} {% endfor %}