diff --git a/src/plugins/webreport/NarrativeWeb.py b/src/plugins/webreport/NarrativeWeb.py index 4eae59162..686cf6dd4 100644 --- a/src/plugins/webreport/NarrativeWeb.py +++ b/src/plugins/webreport/NarrativeWeb.py @@ -306,7 +306,7 @@ class BasePage: of.write('\t
\n') else: @@ -343,6 +343,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 @@ -417,16 +426,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