fixed old style file names

This commit is contained in:
Rushabh Mehta
2012-02-16 13:01:28 +05:30
parent 761a044cd7
commit 8425c87d5f
5 changed files with 9 additions and 5 deletions

View File

@@ -29,4 +29,6 @@ class DocType:
#
def set_html_from_image(self):
file_name = self.doc.file_list.split(',')[0]
self.doc.header_html = '<div><img style="max-height: 120px; max-width: 600px" src="index.cgi?cmd=get_file&fname=' + file_name + '"/></div>'
self.doc.header_html = """<div>
<img style="max-height: 120px; max-width: 600px" src="files/%s"/>
</div>""" % file_name