X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=m_librarian%2Fweb%2Fviews%2Flist_books.tmpl;h=3127fec203c2bab0096e636335e4ad07c0da1f95;hb=44832c681b0c8ee614f92a6e623c27a8cf538b4b;hp=cab1e1d3edad0856bb6888ab160e1b2c816d4b7e;hpb=10f50ecc606a84ead65526f78a9544996f8e6ccd;p=m_librarian.git diff --git a/m_librarian/web/views/list_books.tmpl b/m_librarian/web/views/list_books.tmpl index cab1e1d..3127fec 100644 --- a/m_librarian/web/views/list_books.tmpl +++ b/m_librarian/web/views/list_books.tmpl @@ -1,42 +1,91 @@ #encoding utf-8 -#import cgi +#from m_librarian.translations import translations #extends views.layout #attr $title = 'Список книг' #def body

$title

+ + #if $books_by_author +#filter WebSafe
-
- + #set $_ = $getattr($translations, 'ugettext', None) or $translations.gettext + #for $column in $columns + $_($column) + #end for + + #set $columns1 = $len($columns)+1 + #for $anum, $author in $enumerate($sorted($books_by_author)) + #set $series = None + #set $snum = 0 #set $books = $books_by_author[$author] + + + $author + #for $book in $books #if $book.series != $series - #if $series is not None - - #end if #set $series = $book.series - + + $author — + #if $book.series +$series, 1#slurp + #else Вне серий#slurp + #end if + + #end if -"> - #end if - + + + #for $column in $columns + #if $column in ('ser_no', 'size') + #set $style = ' style="text-align: right; width: 5ex"' + #else + #set $style = '' + #end if + $unicode($getattr($book, $column) or '') + #end for + #end for #end for - - -
-
- -
+ + + +
+#end filter WebSafe #else

Не найдено ни одной книги!

#end if