diff --git a/gramps/plugins/webreport/narrativeweb.py b/gramps/plugins/webreport/narrativeweb.py index 83f4968e7..77f57bff1 100644 --- a/gramps/plugins/webreport/narrativeweb.py +++ b/gramps/plugins/webreport/narrativeweb.py @@ -1566,6 +1566,7 @@ class NavWebOptions(MenuReportOptions): self.__securesite = False self.__extra_page_name = None self.__extra_page = None + self.__relation = False db_options = name + ' ' + dbase.get_dbname() MenuReportOptions.__init__(self, db_options, dbase) @@ -1629,6 +1630,16 @@ class NavWebOptions(MenuReportOptions): addopt("pid", self.__pid) self.__pid.connect('value-changed', self.__update_filters) + self.__relation = BooleanOption(_("Show the relationship between the " + "current person and the active person" + ), False) + self.__relation.set_help(_("For each person page, show the relationship" + " between this person and the active person." + )) + addopt("relation", self.__relation) + + self.__pid.connect('value-changed', self.__update_filters) + self.__update_filters() stdoptions.add_living_people_option(menu, category_name) diff --git a/gramps/plugins/webreport/person.py b/gramps/plugins/webreport/person.py index bd1e141e3..85215bc77 100644 --- a/gramps/plugins/webreport/person.py +++ b/gramps/plugins/webreport/person.py @@ -494,10 +494,11 @@ class PersonPages(BasePage): if sect2 is not None: individualdetail += sect2 - # display relationship to the center person - sect3 = self.display_ind_center_person() - if sect3 is not None: - individualdetail += sect3 + if self.report.options['relation']: + # display relationship to the center person + sect3 = self.display_ind_center_person() + if sect3 is not None: + individualdetail += sect3 # display parents sect4 = self.display_ind_parents()