X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=m_librarian%2Fweb%2Fviews%2Flist_authors.tmpl;h=a364ebaa203b9d6f54f81f9dfff42026120cef1b;hb=44832c681b0c8ee614f92a6e623c27a8cf538b4b;hp=f7377ba29c5fc835f717d06f8e561fe17883eca1;hpb=c36e520339e5c0043fa6861f43ff5915999eb980;p=m_librarian.git diff --git a/m_librarian/web/views/list_authors.tmpl b/m_librarian/web/views/list_authors.tmpl index f7377ba..a364eba 100644 --- a/m_librarian/web/views/list_authors.tmpl +++ b/m_librarian/web/views/list_authors.tmpl @@ -1,4 +1,5 @@ #encoding utf-8 +#from m_librarian.translations import translations #extends views.layout #attr $title = 'Список авторов' #def body @@ -9,13 +10,30 @@ $search_authors_form(searchList=$searchList)

$title

#if $authors +#filter WebSafe + + #set $_ = $getattr($translations, 'ugettext', None) or $translations.gettext + #for $column in $columns + + #end for + #for $author in $authors - + #for $column in $columns + #if $column == 'count' + #set $style = ' style="text-align: right; width: 5ex"' + #else + #set $style = '' + #end if + + $unicode($getattr($author, $column) or '') + + #end for #end for
$_($column)
$author.fullname
+#end filter WebSafe #else

Не найдено ни одного автора!

#end if