if self.has_media("txt"):
formats.append(u'<a href="%s">TXT</a>' % self.get_media('txt').url)
# other files
- for m in self.media.order_by('type'):
+ for m in self.medias.order_by('type'):
formats.append(u'<a href="%s">%s</a>' % m.type, m.file.url)
-
+
formats = [mark_safe(format) for format in formats]
setattr(self, key, unicode(render_to_string('catalogue/book_short.html',
book_tag = book.book_tag()
tags = list(book.tags.filter(~Q(category='set')))
categories = split_tags(tags)
- book_children = book.children.all().order_by('parent_number')
+ book_children = book.children.all().order_by('parent_number', 'title')
_book = book
parents = []
-Subproject commit 4dc60ac382ac861ca6f86e8c95ef0508257a32d3
+Subproject commit dd7a7591ae946e6526f7555672517563c994b3ee
}
-#toc, #themes {
+#toc, #themes, #nota_red {
position: fixed;
left: 0em;
top: 1.5em;
if ($('#toc li').length == 0) {
$('#menu li a[href="#toc"]').remove();
}
+ if ($('#nota_red').length == 0) {
+ $('#menu li a[href="#nota_red"]').remove();
+ }
// On page load, scroll to anchor
scrollToAnchor(window.location.hash)
<ul>
<li><a href="#toc">{% trans "Table of contents" %}</a></li>
<li><a href="#themes">{% trans "Themes" %}</a></li>
+ <li><a href="#nota_red">{% trans "Edit. note" %}</a></li>
</ul>
</div>
<div id="header">