From 691ee7c0396998d88b22c53da94e28a55874c914 Mon Sep 17 00:00:00 2001 From: Radek Czajka Date: Mon, 23 Jan 2012 15:17:16 +0100 Subject: [PATCH] cache fix --- apps/social/templates/social/cite_promo.html | 2 +- wolnelektury/static/css/cite.css | 5 +++-- wolnelektury/templates/catalogue/book_detail.html | 8 ++++++-- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/apps/social/templates/social/cite_promo.html b/apps/social/templates/social/cite_promo.html index 5caaf1db5..04866f14b 100755 --- a/apps/social/templates/social/cite_promo.html +++ b/apps/social/templates/social/cite_promo.html @@ -3,7 +3,7 @@ {% if cite %} {% if cite.vip %} -

{{ cite.vip }} {% trans "recommends" %}:

+

{{ cite.vip }} {% trans "recommends" %}:

{% endif %}
{{ cite.text|linebreaks|safe }} diff --git a/wolnelektury/static/css/cite.css b/wolnelektury/static/css/cite.css index 54632976b..c86ea6504 100755 --- a/wolnelektury/static/css/cite.css +++ b/wolnelektury/static/css/cite.css @@ -15,7 +15,9 @@ a.cite { } .cite .vip { - margin-top: 0; + margin: 0; + color: #575C63; + font-size: 1.1em; } @@ -23,7 +25,6 @@ a.cite { #big-cite { background-color: white; - /*padding: 10.75em 10em 8.5em 18.2em;*/ padding: 0; margin: 0; } diff --git a/wolnelektury/templates/catalogue/book_detail.html b/wolnelektury/templates/catalogue/book_detail.html index 17207d1b7..a1a62fe24 100644 --- a/wolnelektury/templates/catalogue/book_detail.html +++ b/wolnelektury/templates/catalogue/book_detail.html @@ -1,5 +1,5 @@ {% extends "base.html" %} -{% load i18n %} +{% load cache i18n %} {% load catalogue_tags pagination_tags %} {% block titleextra %}{{ book.title }}{% endblock %} @@ -14,6 +14,10 @@ {% work_list book_children %} -{% related_books book %} + +

{% trans "See also" %}:

+{% cache 1800 book-detail-related book.slug %} + {% related_books book %} +{% endcache %} {% endblock %} -- 2.20.1