fnp
/
wolnelektury.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
24dbfdf
)
more fixes
author
Radek Czajka
<radoslaw.czajka@nowoczesnapolska.org.pl>
Fri, 27 Jan 2012 16:53:42 +0000
(17:53 +0100)
committer
Radek Czajka
<radoslaw.czajka@nowoczesnapolska.org.pl>
Fri, 27 Jan 2012 16:53:42 +0000
(17:53 +0100)
apps/catalogue/views.py
patch
|
blob
|
history
wolnelektury/templates/base.html
patch
|
blob
|
history
wolnelektury/templates/catalogue/book_short.html
patch
|
blob
|
history
wolnelektury/views.py
patch
|
blob
|
history
diff --git
a/apps/catalogue/views.py
b/apps/catalogue/views.py
index
01600f5
..
1686450
100644
(file)
--- a/
apps/catalogue/views.py
+++ b/
apps/catalogue/views.py
@@
-16,6
+16,7
@@
from django.utils.datastructures import SortedDict
from django.utils.http import urlquote_plus
from django.utils import translation
from django.utils.translation import ugettext as _
from django.utils.http import urlquote_plus
from django.utils import translation
from django.utils.translation import ugettext as _
+from django.views.decorators.cache import never_cache
from ajaxable.utils import JSONResponse, AjaxableFormView
from ajaxable.utils import JSONResponse, AjaxableFormView
@@
-95,6
+96,7
@@
def differentiate_tags(request, tags, ambiguous_slugs):
context_instance=RequestContext(request))
context_instance=RequestContext(request))
+@never_cache
def tagged_object_list(request, tags=''):
try:
tags = models.Tag.get_tag_list(tags)
def tagged_object_list(request, tags=''):
try:
tags = models.Tag.get_tag_list(tags)
@@
-202,6
+204,7
@@
def book_fragments(request, slug, theme_slug):
context_instance=RequestContext(request))
context_instance=RequestContext(request))
+@never_cache
def book_detail(request, slug):
try:
book = models.Book.objects.get(slug=slug)
def book_detail(request, slug):
try:
book = models.Book.objects.get(slug=slug)
diff --git
a/wolnelektury/templates/base.html
b/wolnelektury/templates/base.html
index
c9cfe15
..
4c2c575
100644
(file)
--- a/
wolnelektury/templates/base.html
+++ b/
wolnelektury/templates/base.html
@@
-31,7
+31,7
@@
<span>
{% cache 60 tagline LANGUAGE_CODE %}
{% url book_list as b %}
<span>
{% cache 60 tagline LANGUAGE_CODE %}
{% url book_list as b %}
- {% url
book_list
as r %}
+ {% url
infopage 'o-projekcie'
as r %}
{% count_books book_count %}
{% blocktrans count book_count as c %}
<a href='{{b}}'>{{c}}</a> free reading you have <a href='{{r}}'>right to</a>
{% count_books book_count %}
{% blocktrans count book_count as c %}
<a href='{{b}}'>{{c}}</a> free reading you have <a href='{{r}}'>right to</a>
diff --git
a/wolnelektury/templates/catalogue/book_short.html
b/wolnelektury/templates/catalogue/book_short.html
index
304cdc6
..
424487b
100644
(file)
--- a/
wolnelektury/templates/catalogue/book_short.html
+++ b/
wolnelektury/templates/catalogue/book_short.html
@@
-46,6
+46,8
@@
</div>
<div class="tags">
</div>
<div class="tags">
+ {% spaceless %}
+
<span class="mono"> {% trans "Epoch" %}:</span> <span class="book-box-tag">
{% for name, slug in related.tags.epoch %}
<a href="{% tag_url 'epoch' slug %}">{{ name }}</a>
<span class="mono"> {% trans "Epoch" %}:</span> <span class="book-box-tag">
{% for name, slug in related.tags.epoch %}
<a href="{% tag_url 'epoch' slug %}">{{ name }}</a>
@@
-67,6
+69,7
@@
{% endfor %}
</span>
{% endfor %}
</span>
+ {% endspaceless %}
</div>
</div>
{% shelf_tags book %}
</div>
</div>
{% shelf_tags book %}
diff --git
a/wolnelektury/views.py
b/wolnelektury/views.py
index
555b732
..
01fac46
100755
(executable)
--- a/
wolnelektury/views.py
+++ b/
wolnelektury/views.py
@@
-17,6
+17,7
@@
from catalogue.models import Book
from ajaxable.utils import placeholdized
from ajaxable.utils import placeholdized
+@never_cache
def main_page(request):
last_published = Book.objects.exclude(html_file='').order_by('-created_at')[:4]
def main_page(request):
last_published = Book.objects.exclude(html_file='').order_by('-created_at')[:4]