parent
7da8811327
commit
d98a1857dc
@ -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)
|
||||
|
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user