fnp
/
redakcja.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add audience and thema data to catalogue. Also: nicer cover view.
[redakcja.git]
/
src
/
documents
/
templatetags
/
wall.py
diff --git
a/src/documents/templatetags/wall.py
b/src/documents/templatetags/wall.py
index
4a6795b
..
25bda8b
100644
(file)
--- a/
src/documents/templatetags/wall.py
+++ b/
src/documents/templatetags/wall.py
@@
-5,7
+5,7
@@
from datetime import timedelta
from django.db.models import Q
from django.urls import reverse
from django import template
from django.db.models import Q
from django.urls import reverse
from django import template
-from django.utils.translation import
u
gettext as _
+from django.utils.translation import gettext as _
from documents.models import Chunk, BookPublishRecord, Image, ImagePublishRecord
from documents.models import Chunk, BookPublishRecord, Image, ImagePublishRecord
@@
-51,8
+51,8
@@
def changes_wall(user=None, max_len=None, day=None):
w.header = _('Edit')
w.title = chunk.pretty_name()
w.summary = item.description
w.header = _('Edit')
w.title = chunk.pretty_name()
w.summary = item.description
- w.url = reverse('wiki_editor',
- args=[chunk.book.slug, chunk.slug]) + '?diff=%d' % item.revision
+ w.url = reverse('wiki_editor',
args=[chunk.book.slug, chunk.slug]) + \
+ '#DiffPerspective_R%d-%d' % (item.revision - 1, item.revision)
w.timestamp = item.created_at
w.user = item.author
w.user_name = item.author_name
w.timestamp = item.created_at
w.user = item.author
w.user_name = item.author_name