]> git.phdru.name Git - m_librarian.git/blobdiff - m_librarian/web/views/list_authors.py
Feat(web): Show books by an author
[m_librarian.git] / m_librarian / web / views / list_authors.py
index 3c5245a92a31e5bc6b1ca6f0b79265cb211ac15e..5c70204c7f390cbc60e2050012a34ca32f875588 100644 (file)
@@ -36,10 +36,10 @@ VFN=valueForName
 currentTime=time.time
 __CHEETAH_version__ = '3.1.0'
 __CHEETAH_versionTuple__ = (3, 1, 0, 'final', 1)
-__CHEETAH_genTime__ = 1522961824.042332
-__CHEETAH_genTimestamp__ = 'Thu Apr  5 23:57:04 2018'
+__CHEETAH_genTime__ = 1523134510.111994
+__CHEETAH_genTimestamp__ = 'Sat Apr  7 23:55:10 2018'
 __CHEETAH_src__ = 'list_authors.tmpl'
-__CHEETAH_srcLastModified__ = 'Thu Apr  5 23:54:11 2018'
+__CHEETAH_srcLastModified__ = 'Sat Apr  7 23:55:07 2018'
 __CHEETAH_docstring__ = 'Autogenerated by Cheetah: The Python-Powered Template Engine'
 
 if __CHEETAH_versionTuple__ < RequiredCheetahVersionTuple:
@@ -104,10 +104,13 @@ class list_authors(layout):
 ''')
             for author in VFFSL(SL,"authors",True): # generated from line 13, col 3
                 write(u'''  <tr>
-    <td>''')
-                _v = VFFSL(SL,"author.fullname",True) # u'$author.fullname' on line 15, col 9
-                if _v is not None: write(_filter(_v, rawExpr=u'$author.fullname')) # from line 15, col 9.
-                write(u'''</td>
+    <td><a href="/books-by-author/''')
+                _v = VFFSL(SL,"author.id",True) # u'$author.id' on line 15, col 35
+                if _v is not None: write(_filter(_v, rawExpr=u'$author.id')) # from line 15, col 35.
+                write(u'''/">''')
+                _v = VFFSL(SL,"author.fullname",True) # u'$author.fullname' on line 15, col 48
+                if _v is not None: write(_filter(_v, rawExpr=u'$author.fullname')) # from line 15, col 48.
+                write(u'''</a></td>
   </tr>
 ''')
             write(u'''  </table>