From: Oleg Broytman Date: Mon, 11 Jun 2018 22:22:41 +0000 (+0300) Subject: Fix(web): Выровнять вправо размер книги X-Git-Tag: 0.1.5~8 X-Git-Url: https://git.phdru.name/?p=m_librarian.git;a=commitdiff_plain;h=961cab22b2f5da852df95ca0155dc4207acaecd9 Fix(web): Выровнять вправо размер книги --- diff --git a/m_librarian/web/views/books_by_author.py b/m_librarian/web/views/books_by_author.py index e53f1d5..664c583 100644 --- a/m_librarian/web/views/books_by_author.py +++ b/m_librarian/web/views/books_by_author.py @@ -37,10 +37,10 @@ VFN=valueForName currentTime=time.time __CHEETAH_version__ = '3.1.0' __CHEETAH_versionTuple__ = (3, 1, 0, 'final', 1) -__CHEETAH_genTime__ = 1528718535.338311 -__CHEETAH_genTimestamp__ = 'Mon Jun 11 15:02:15 2018' +__CHEETAH_genTime__ = 1528755605.645537 +__CHEETAH_genTimestamp__ = 'Tue Jun 12 01:20:05 2018' __CHEETAH_src__ = 'books_by_author.tmpl' -__CHEETAH_srcLastModified__ = 'Mon Jun 11 15:02:13 2018' +__CHEETAH_srcLastModified__ = 'Tue Jun 12 01:19:14 2018' __CHEETAH_docstring__ = 'Autogenerated by Cheetah: The Python-Powered Template Engine' if __CHEETAH_versionTuple__ < RequiredCheetahVersionTuple: @@ -142,7 +142,7 @@ class books_by_author(layout): write(u'''"> ''') for column in VFFSL(SL,"columns",True): # generated from line 36, col 3 - if VFFSL(SL,"column",True) == 'ser_no': # generated from line 37, col 3 + if VFFSL(SL,"column",True) in ('ser_no', 'size'): # generated from line 37, col 3 style = ' style="text-align: right; width: 5ex"' else: # generated from line 39, col 3 style = '' diff --git a/m_librarian/web/views/books_by_author.tmpl b/m_librarian/web/views/books_by_author.tmpl index d8a319c..2200913 100644 --- a/m_librarian/web/views/books_by_author.tmpl +++ b/m_librarian/web/views/books_by_author.tmpl @@ -34,7 +34,7 @@ $cgi.escape($series, 1)#slurp #for $column in $columns - #if $column == 'ser_no' + #if $column in ('ser_no', 'size') #set $style = ' style="text-align: right; width: 5ex"' #else #set $style = '' diff --git a/m_librarian/web/views/list_books.py b/m_librarian/web/views/list_books.py index b0306dc..c9af4b4 100644 --- a/m_librarian/web/views/list_books.py +++ b/m_librarian/web/views/list_books.py @@ -37,10 +37,10 @@ VFN=valueForName currentTime=time.time __CHEETAH_version__ = '3.1.0' __CHEETAH_versionTuple__ = (3, 1, 0, 'final', 1) -__CHEETAH_genTime__ = 1528718535.673384 -__CHEETAH_genTimestamp__ = 'Mon Jun 11 15:02:15 2018' +__CHEETAH_genTime__ = 1528755606.297172 +__CHEETAH_genTimestamp__ = 'Tue Jun 12 01:20:06 2018' __CHEETAH_src__ = 'list_books.tmpl' -__CHEETAH_srcLastModified__ = 'Mon Jun 11 15:02:00 2018' +__CHEETAH_srcLastModified__ = 'Tue Jun 12 01:20:03 2018' __CHEETAH_docstring__ = 'Autogenerated by Cheetah: The Python-Powered Template Engine' if __CHEETAH_versionTuple__ < RequiredCheetahVersionTuple: @@ -145,7 +145,7 @@ class list_books(layout): write(u'''"> ''') for column in VFFSL(SL,"columns",True): # generated from line 39, col 3 - if VFFSL(SL,"column",True) == 'ser_no': # generated from line 40, col 3 + if VFFSL(SL,"column",True) in ('ser_no', 'size'): # generated from line 40, col 3 style = ' style="text-align: right; width: 5ex"' else: # generated from line 42, col 3 style = '' diff --git a/m_librarian/web/views/list_books.tmpl b/m_librarian/web/views/list_books.tmpl index 1c0ebde..5d70c88 100644 --- a/m_librarian/web/views/list_books.tmpl +++ b/m_librarian/web/views/list_books.tmpl @@ -37,7 +37,7 @@ $cgi.escape($series, 1)#slurp #for $column in $columns - #if $column == 'ser_no' + #if $column in ('ser_no', 'size') #set $style = ' style="text-align: right; width: 5ex"' #else #set $style = ''