fix path hierarchy
svn: r5072
This commit is contained in:
parent
ed41f66ebf
commit
1cffbd5998
@ -420,11 +420,12 @@ class BasePage:
|
|||||||
else:
|
else:
|
||||||
return base + "." + self.ext
|
return base + "." + self.ext
|
||||||
|
|
||||||
def person_link(self,of,path,name,gid=""):
|
def person_link(self,of,path,name,gid="",up=True):
|
||||||
if self.levels == 1:
|
if up:
|
||||||
path = "../../" + path
|
if self.levels == 1:
|
||||||
elif self.levels == 2:
|
path = "../../" + path
|
||||||
path = "../../../" + path
|
elif self.levels == 2:
|
||||||
|
path = "../../../" + path
|
||||||
|
|
||||||
of.write('<a href="%s">%s' % (path,name))
|
of.write('<a href="%s">%s' % (path,name))
|
||||||
if not self.noid and gid != "":
|
if not self.noid and gid != "":
|
||||||
@ -528,7 +529,7 @@ class IndividualListPage(BasePage):
|
|||||||
path = self.build_path(person.handle,"ppl",False)
|
path = self.build_path(person.handle,"ppl",False)
|
||||||
self.person_link(of, self.build_name(path,person.handle),
|
self.person_link(of, self.build_name(path,person.handle),
|
||||||
person.get_primary_name().get_first_name(),
|
person.get_primary_name().get_first_name(),
|
||||||
person.gramps_id)
|
person.gramps_id,False)
|
||||||
of.write('</td><td class="field">')
|
of.write('</td><td class="field">')
|
||||||
birth_handle = person.get_birth_handle()
|
birth_handle = person.get_birth_handle()
|
||||||
if birth_handle:
|
if birth_handle:
|
||||||
@ -574,7 +575,7 @@ class SurnamePage(BasePage):
|
|||||||
path = self.build_path(person.handle,"ppl",False)
|
path = self.build_path(person.handle,"ppl",False)
|
||||||
self.person_link(of, self.build_name(path,person.handle),
|
self.person_link(of, self.build_name(path,person.handle),
|
||||||
person.get_primary_name().get_first_name(),
|
person.get_primary_name().get_first_name(),
|
||||||
person.gramps_id)
|
person.gramps_id,False)
|
||||||
of.write('</td><td class="field">')
|
of.write('</td><td class="field">')
|
||||||
birth_handle = person.get_birth_handle()
|
birth_handle = person.get_birth_handle()
|
||||||
if birth_handle:
|
if birth_handle:
|
||||||
@ -1818,7 +1819,7 @@ class WebReport(Report.Report):
|
|||||||
ind_list, place_list, source_list,
|
ind_list, place_list, source_list,
|
||||||
self.options, archive, photo_list, levels)
|
self.options, archive, photo_list, levels)
|
||||||
|
|
||||||
if len(ind_list) > 1:
|
if len(ind_list) > 0:
|
||||||
IndividualListPage(self.database, self.title, ind_list,
|
IndividualListPage(self.database, self.title, ind_list,
|
||||||
self.options, archive, photo_list, levels)
|
self.options, archive, photo_list, levels)
|
||||||
SurnameListPage(self.database, self.title, ind_list,
|
SurnameListPage(self.database, self.title, ind_list,
|
||||||
|
Loading…
Reference in New Issue
Block a user