Fixed the home_link in the footer.
svn: r15177
This commit is contained in:
parent
0033084874
commit
2d23b3c174
@ -919,24 +919,23 @@ class BasePage(object):
|
|||||||
# attach note
|
# attach note
|
||||||
user_footer += note.get()
|
user_footer += note.get()
|
||||||
|
|
||||||
value = _dd.display(date.Today())
|
|
||||||
msg = _('Generated by <a href = "%(homepage)s">'
|
msg = _('Generated by <a href = "%(homepage)s">'
|
||||||
'Gramps</a> on %(date)s') % {
|
'Gramps</a> on %(date)s') % {
|
||||||
'date': value, 'homepage' : const.URL_HOMEPAGE
|
'date': _dd.display(date.Today()),
|
||||||
}
|
'homepage' : const.URL_HOMEPAGE }
|
||||||
|
|
||||||
# optional "link-home" feature; see bug report #2736
|
# optional "link-home" feature; see bug report #2736
|
||||||
if self.report.options['linkhome']:
|
if self.report.options['linkhome']:
|
||||||
center_person = db.get_person_from_gramps_id(self.report.options['pid'])
|
center_person = db.get_person_from_gramps_id(self.report.options['pid'])
|
||||||
if center_person:
|
if center_person:
|
||||||
home_person_url = self.report.build_url_fname_html(
|
center_person_url = self.report.build_url_fname_html(
|
||||||
center_person.handle, "ppl", self.up)
|
center_person.handle, "ppl", self.up)
|
||||||
|
|
||||||
home_person_name = self.get_name(center_person)
|
center_person_name = self.get_name(center_person)
|
||||||
msg += _(' Created for <a href = "%s">%s</a>') % (
|
msg += _('<br>Created for <a href = "%s">%s</a>') % (
|
||||||
home_person_url, home_person_name)
|
center_person_url, center_person_name)
|
||||||
|
|
||||||
# creation date
|
# creation author
|
||||||
footer += Html("p", msg, id = 'createdate')
|
footer += Html("p", msg, id = 'createdate')
|
||||||
|
|
||||||
# get copyright license for all pages
|
# get copyright license for all pages
|
||||||
|
Loading…
Reference in New Issue
Block a user