]> git.phdru.name Git - m_librarian.git/commitdiff
Fix(web): Выровнять вправо размер книги
authorOleg Broytman <phd@phdru.name>
Mon, 11 Jun 2018 22:22:41 +0000 (01:22 +0300)
committerOleg Broytman <phd@phdru.name>
Mon, 11 Jun 2018 22:22:41 +0000 (01:22 +0300)
m_librarian/web/views/books_by_author.py
m_librarian/web/views/books_by_author.tmpl
m_librarian/web/views/list_books.py
m_librarian/web/views/list_books.tmpl

index e53f1d501dadfa5703de8628759b7516af925613..664c583f860659bb79a7983a801166c47cb821fb 100644 (file)
@@ -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'''"></td>
 ''')
                 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 = ''
index d8a319c2b116cac02890db667534c497a0ac9abe..22009134761d65cadc70c4810cf1d63dd4351fe4 100644 (file)
@@ -34,7 +34,7 @@ $cgi.escape($series, 1)#slurp
   <tr>
   <td><input type=checkbox name=books value="$book.id"></td>
   #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 = ''
index b0306dc00b04e03b4ad5351a5eea1b6bb91c110b..c9af4b4b42d72de5fec40927dff8828ad01f89fe 100644 (file)
@@ -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'''"></td>
 ''')
                     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 = ''
index 1c0ebde069398278595caca300bf5e41732440b3..5d70c8885948caa00430cfc452d3f483c147db85 100644 (file)
@@ -37,7 +37,7 @@ $cgi.escape($series, 1)#slurp
   <tr>
   <td><input type=checkbox name=books value="$book.id"></td>
   #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 = ''