From 782ac444b0d600a194212fb417ea1c3cb16b1096 Mon Sep 17 00:00:00 2001 From: Doug Blank Date: Thu, 15 Apr 2010 21:44:09 +0000 Subject: [PATCH] Create Addressbook Page, even if no addresses if it is checked; center mainz addressbook pages svn: r15155 --- src/data/Web_Mainz.css | 2 +- src/plugins/webreport/NarrativeWeb.py | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/data/Web_Mainz.css b/src/data/Web_Mainz.css index 3a184654d..c4b00e58b 100644 --- a/src/data/Web_Mainz.css +++ b/src/data/Web_Mainz.css @@ -842,7 +842,7 @@ div#RepositoryList table.repolist tbody tr td.ColumnName { /* Address Book ------------------------------------------------------ */ div#AddressBookList, AddressBookDetail { - margin: 0; + margin: auto; padding: 0; } div#AddressBookList table.addressbook { diff --git a/src/plugins/webreport/NarrativeWeb.py b/src/plugins/webreport/NarrativeWeb.py index 5e3eb6fa3..d0b4daef1 100644 --- a/src/plugins/webreport/NarrativeWeb.py +++ b/src/plugins/webreport/NarrativeWeb.py @@ -5437,6 +5437,7 @@ class NavWebReport(Report): data = (sort_name, person_handle, has_add, has_res, has_url) has_url_address.append(data) + AddressBookListPage(self, self.title, has_url_address) # Determine if we build Address Book if has_url_address: has_url_address.sort() @@ -5444,8 +5445,6 @@ class NavWebReport(Report): addr_size = len( has_url_address ) self.progress.set_pass(_("Creating address book pages ..."), addr_size) - AddressBookListPage(self, self.title, has_url_address) - count = 1 for (sort_name, person_handle, has_add, has_res, has_url) in has_url_address: self.progress.set_header(_("Creating address book page %d of %d" % (count, addr_size)))