From ca227013bf7359a475e509528721a06af0f30967 Mon Sep 17 00:00:00 2001 From: SNoiraud Date: Thu, 1 Sep 2016 16:52:27 +0200 Subject: [PATCH] Narrativeweb : Created for in footer not consistant with filter option. --- gramps/plugins/webreport/narrativeweb.py | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/gramps/plugins/webreport/narrativeweb.py b/gramps/plugins/webreport/narrativeweb.py index 4c96202d9..84918d426 100644 --- a/gramps/plugins/webreport/narrativeweb.py +++ b/gramps/plugins/webreport/narrativeweb.py @@ -1711,6 +1711,8 @@ class BasePage: else: msg += _(' on %(date)s') % {'date' : _dd.display(Today())} + origin1 = self.report.filter.get_name() + filt_number = self.report.options['filter'] # optional "link-home" feature; see bug report #2736 if self.report.options['linkhome']: center_person = self.r_db.get_person_from_gramps_id( @@ -1721,12 +1723,20 @@ class BasePage: center_person.handle, "ppl", self.uplink) person_name = self.get_name(center_person) - subject_url = '' - subject_url += person_name + '' + if filt_number > 0 and filt_number < 5: + subject_url = '' + subject_url += origin1 + '' + else: + subject_url = origin1 msg += _( '%(http_break)sCreated for %(subject_url)s') % { 'http_break' : '
', 'subject_url' : subject_url} + else: + msg += _( + '%(http_break)sCreated for %(subject_url)s') % { + 'http_break' : '
', + 'subject_url' : origin1} # creation author footer += Html("p", msg, id='createdate')