* src/plugins/NavWebPage.py: fix typos
svn: r4961
This commit is contained in:
@ -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>
|
2005-07-21 Don Allingham <don@gramps-project.org>
|
||||||
* src/data/somerights20.gif: make a local copy of the Create Commons
|
* src/data/somerights20.gif: make a local copy of the Create Commons
|
||||||
image
|
image
|
||||||
|
@ -381,7 +381,7 @@ class BasePage:
|
|||||||
def build_path(self,handle,dirroot,up):
|
def build_path(self,handle,dirroot,up):
|
||||||
if up:
|
if up:
|
||||||
if self.levels == 1:
|
if self.levels == 1:
|
||||||
return '../../%s/%s/' % (dirroot,handle[0])
|
return '../../%s/%s' % (dirroot,handle[0])
|
||||||
else:
|
else:
|
||||||
return '../../../%s/%s/%s' % (dirroot,handle[0],handle[1])
|
return '../../../%s/%s/%s' % (dirroot,handle[0],handle[1])
|
||||||
else:
|
else:
|
||||||
@ -871,7 +871,7 @@ class HomePage(BasePage):
|
|||||||
mime_type = obj.get_mime_type()
|
mime_type = obj.get_mime_type()
|
||||||
if mime_type and mime_type.startswith("image"):
|
if mime_type and mime_type.startswith("image"):
|
||||||
try:
|
try:
|
||||||
newpath = self.copy_media_add(obj)
|
newpath = self.copy_media(obj)
|
||||||
of.write('<div align="center">\n')
|
of.write('<div align="center">\n')
|
||||||
of.write('<img border="0" ')
|
of.write('<img border="0" ')
|
||||||
of.write('src="%s" alt="%s" />' % (newpath, obj.get_description()))
|
of.write('src="%s" alt="%s" />' % (newpath, obj.get_description()))
|
||||||
|
Reference in New Issue
Block a user