X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=m_librarian%2Fweb%2Fviews%2Flist_books.tmpl;h=3fa406a1a351a92b60f3c8bb4df4f80cf09ea6f7;hb=refs%2Ftags%2F0.3.0;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..3fa406a 100644 --- a/m_librarian/web/views/list_books.tmpl +++ b/m_librarian/web/views/list_books.tmpl @@ -1,41 +1,89 @@ #encoding utf-8 #import cgi +#from m_librarian.translations import translations #extends views.layout #attr $title = 'Список книг' #def body

$title

+ + #if $books_by_author
-
- + #set $_ = $getattr($translations, 'ugettext', None) or $translations.gettext + #for $column in $columns + $cgi.escape($_($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 $cgi.escape($series, 1)#slurp - #else + #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 + $cgi.escape(unicode($getattr($book, $column) or '')) + #end for + #end for #end for - - -
-
- -
+ + + +
#else

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