* src/plugins/NavWebPage.py: Display URL list of Individuals and Places
svn: r4932
This commit is contained in:
parent
17ed93108d
commit
6af4fc542d
@ -2,6 +2,7 @@
|
||||
* src/plugins/NavWebPage.py: Added display_note_object and
|
||||
display_first_image_as_thumbnail to BasePage; PlacePage and
|
||||
IndividualPage use this now.
|
||||
Display URL list of Individuals and Places
|
||||
|
||||
2005-07-14 Don Allingham <don@gramps-project.org>
|
||||
* src/plugins/NavWebPage.py: wrap content with div, fix encoding problems
|
||||
|
@ -231,6 +231,23 @@ class BasePage:
|
||||
text = u"</p><p>".join(text.split("\n"))
|
||||
of.write('<p>%s</p>\n' % text)
|
||||
|
||||
def display_url_list(self,of,urllist=None):
|
||||
if not urllist:
|
||||
return
|
||||
of.write('<h4>%s</h4>\n' % _('Weblinks'))
|
||||
of.write('<hr>\n')
|
||||
of.write('<table class="infolist" cellpadding="0" ')
|
||||
of.write('cellspacing="0" border="0">\n')
|
||||
|
||||
index = 1
|
||||
for url in urllist:
|
||||
uri = url.get_path()
|
||||
descr = url.get_description()
|
||||
of.write('<tr><td class="field">%d. <a href="%s">%s</a>' % (index,uri,descr))
|
||||
of.write('</td></tr>\n')
|
||||
index = index + 1
|
||||
of.write('</table>\n')
|
||||
|
||||
#------------------------------------------------------------------------
|
||||
#
|
||||
#
|
||||
@ -403,6 +420,7 @@ class PlacePage(BasePage):
|
||||
# TODO: Add more information
|
||||
|
||||
self.display_note_object(of, place.get_note_object())
|
||||
self.display_url_list(of, place.get_url_list())
|
||||
|
||||
self.display_footer(of)
|
||||
self.close_file(of)
|
||||
@ -701,6 +719,7 @@ class IndividualPage(BasePage):
|
||||
self.display_ind_events(of)
|
||||
self.display_ind_relationships(of)
|
||||
self.display_note_object(of, self.person.get_note_object())
|
||||
self.display_url_list(of, self.person.get_url_list())
|
||||
self.display_ind_sources(of)
|
||||
self.display_ind_pedigree(of)
|
||||
self.display_footer(of)
|
||||
|
Loading…
x
Reference in New Issue
Block a user