* src/plugins/NavWebPage.py: fix typos

svn: r4961
This commit is contained in:
Martin Hawlisch 2005-07-22 12:26:59 +00:00
parent 8c409f079b
commit a9fd2073f2
2 changed files with 5 additions and 2 deletions

View File

@ -1,3 +1,6 @@
2005-07-22 Martin Hawlisch <Martin.Hawlisch@gmx.de>
* src/plugins/NavWebPage.py: fix typos
2005-07-21 Don Allingham <don@gramps-project.org>
* src/data/somerights20.gif: make a local copy of the Create Commons
image

View File

@ -381,7 +381,7 @@ class BasePage:
def build_path(self,handle,dirroot,up):
if up:
if self.levels == 1:
return '../../%s/%s/' % (dirroot,handle[0])
return '../../%s/%s' % (dirroot,handle[0])
else:
return '../../../%s/%s/%s' % (dirroot,handle[0],handle[1])
else:
@ -871,7 +871,7 @@ class HomePage(BasePage):
mime_type = obj.get_mime_type()
if mime_type and mime_type.startswith("image"):
try:
newpath = self.copy_media_add(obj)
newpath = self.copy_media(obj)
of.write('<div align="center">\n')
of.write('<img border="0" ')
of.write('src="%s" alt="%s" />' % (newpath, obj.get_description()))