organization name in footer
authorJan Szejko <janek37@gmail.com>
Fri, 23 Mar 2018 16:03:24 +0000 (17:03 +0100)
committerJan Szejko <janek37@gmail.com>
Fri, 23 Mar 2018 16:03:46 +0000 (17:03 +0100)
apps/catalogue/views.py
lib/librarian

index b272774..77548f8 100644 (file)
@@ -242,6 +242,7 @@ def book_pdf(request, pk, rev_pk):
     ctx = Context(
         files_path='http://%s/media/dynamic/uploads/%s/' % (request.get_host(), pk),
         source_url='http://%s%s' % (request.get_host(), reverse('catalogue_html', args=[doc.pk])),
+        organization=doc.owner_organization.name,
     )
     if doc.owner_organization is not None and doc.owner_organization.logo:
         ctx.cover_logo = 'http://%s%s' % (request.get_host(), doc.owner_organization.logo.url)
index 8b8a4f8..d2997b7 160000 (submodule)
@@ -1 +1 @@
-Subproject commit 8b8a4f83d39cbed2a0c88f734a562117980dd080
+Subproject commit d2997b73a50a2885a993408d277d511f98320ed3