* src/ReportUtils.py: fix typo
* src/plugins/NavWebPage.py: handle contact page issues, including random commas and missing image. svn: r5208
This commit is contained in:
parent
089a8c4d06
commit
fd28cfeac7
@ -1,3 +1,8 @@
|
||||
2005-09-21 Don Allingham <don@gramps-project.org>
|
||||
* src/ReportUtils.py: fix typo
|
||||
* src/plugins/NavWebPage.py: handle contact page issues, including
|
||||
random commas and missing image.
|
||||
|
||||
2005-09-20 Don Allingham <don@gramps-project.org>
|
||||
* src/ImgManip.py: update thumbnail if out of date
|
||||
|
||||
|
@ -1602,7 +1602,7 @@ def buried_str(database,person,person_name=None,empty_date="",empty_place=""):
|
||||
'male_name' : person_name,
|
||||
'female_name' : person_name,
|
||||
'burial_date' : bdate,
|
||||
'burial_place' : bplace
|
||||
'burial_place' : bplace,
|
||||
'month_year' : bdate,
|
||||
'modified_date' : bdate,
|
||||
}
|
||||
|
@ -1238,11 +1238,14 @@ class ContactPage(BasePage):
|
||||
(newpath,thumb_path) = self.copy_media(obj,False)
|
||||
self.store_file(archive,self.html_dir,obj.get_path(),
|
||||
newpath)
|
||||
|
||||
dirpath = self.build_path(note_id,'img')
|
||||
|
||||
of.write('<div class="rightwrap">\n')
|
||||
of.write('<table><tr>')
|
||||
of.write('<td height="205">')
|
||||
of.write('<img height="200" ')
|
||||
of.write('src="%s.%s" ' % (note_id,self.ext))
|
||||
of.write('src="%s" ' % thumb_path)
|
||||
of.write('alt="%s" />' % obj.get_description())
|
||||
of.write('</td></tr></table>\n')
|
||||
of.write('</div>\n')
|
||||
@ -1252,11 +1255,18 @@ class ContactPage(BasePage):
|
||||
r = get_researcher()
|
||||
|
||||
of.write('<div id="researcher">\n')
|
||||
of.write('%s<br />\n' % r.name)
|
||||
of.write('%s<br />\n' % r.addr)
|
||||
of.write('%s, %s, %s<br />\n' % (r.city,r.state,r.postal))
|
||||
of.write('%s<br />\n' % r.country)
|
||||
of.write('%s<br />\n' % r.email)
|
||||
if r.name:
|
||||
of.write('%s<br />\n' % r.name.replace(',,,',''))
|
||||
if r.addr:
|
||||
of.write('%s<br />\n' % r.addr)
|
||||
|
||||
text = "".join([r.city,r.state,r.postal])
|
||||
if text:
|
||||
of.write('%s<br />\n' % text)
|
||||
if r.country:
|
||||
of.write('%s<br />\n' % r.country)
|
||||
if r.email:
|
||||
of.write('%s<br />\n' % r.email)
|
||||
of.write('</div>\n')
|
||||
of.write('<div class="fullclear"></div>\n')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user