X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/1ceb9c4f943943f72da281d4fdb7473d70dcdff9..fbb8f42993d02108b506028dc85466a0541be359:/src/depot/publishers/base.py?ds=sidebyside diff --git a/src/depot/publishers/base.py b/src/depot/publishers/base.py index 88ee56b2..8fff399c 100644 --- a/src/depot/publishers/base.py +++ b/src/depot/publishers/base.py @@ -44,10 +44,11 @@ class BasePublisher: ) if p is not None else '' for p in wlbook.meta.authors ) + '
' - description += '{}
'.format( - wlbook.meta.url.slug, - wlbook.meta.title - ) + if wlbook.meta.url is not None: + description += '{}
'.format( + wlbook.meta.url.slug, + wlbook.meta.title + ) if wlbook.meta.translators: description += 'tłum. ' + ', '.join(p.readable() for p in wlbook.meta.translators) + '
' description += 'Epoka: ' + ', '.join(