diff --git a/src/plugins/webreport/NarrativeWeb.py b/src/plugins/webreport/NarrativeWeb.py index 5c66ae4b9..2c74ba9c8 100644 --- a/src/plugins/webreport/NarrativeWeb.py +++ b/src/plugins/webreport/NarrativeWeb.py @@ -298,7 +298,7 @@ class BasePage: of.write('\t
\n') else: @@ -335,6 +335,15 @@ class BasePage: msg = _('Generated by ' 'GRAMPS on %(date)s') % {'date' : value} + # optional "link-home" feature; see bug report #2736 + if self.report.options['linkhome']: + home_person = self.report.database.get_default_person() + if home_person: + home_person_url = self.report.build_url_fname_html(home_person.handle, 'ppl', self.up) + home_person_name = home_person.get_primary_name().get_regular_name() + msg += '%s
\n' % msg) copy_nr = self.report.copyright @@ -409,16 +418,6 @@ class BasePage: if header: note = self.report.database.get_note_from_gramps_id(header) of.write('\t%s
\n' % note.get()) - - linkhome = self.report.options['linkhome'] - if linkhome: - home_person = self.report.database.get_default_person() - if home_person: - home_person_url = self.report.build_url_fname_html(home_person.handle, 'ppl', self.up) - home_person_name = home_person.get_primary_name().get_regular_name() - msg = _('Created for %s') % (home_person_url, home_person_name) - of.write('\t%s
\n' % msg) - of.write('\n') # Begin Navigation Menu