zuul-swift-upload place mime icon into cell
The mime icons were not correctly placed in the table cell causing them to appear above the table (eg: http://logs.openstack.org/16/155516/1/check/check-dg-tempest-dsvm-full/c0853a4/index.html) Put in the missing <td> tags. Change-Id: Icdae38d55a6dd9472c382006bae9addf3ef6010b
This commit is contained in:
parent
8616dbcbb7
commit
af6fd73557
@ -84,11 +84,12 @@ def generate_log_index(folder_links, header_message=''):
|
||||
|
||||
for file_details in folder_links:
|
||||
output += '<tr>'
|
||||
output += '<img alt="[ ]" title="%(m)s" src="%(i)s"></img>' % ({
|
||||
output += (
|
||||
'<td><img alt="[ ]" title="%(m)s" src="%(i)s"></img></td>' % ({
|
||||
'm': file_details['metadata']['mime'],
|
||||
'i': get_mime_icon(file_details['metadata']['mime'],
|
||||
file_details['filename']),
|
||||
})
|
||||
}))
|
||||
output += '<td><a href="%s">%s</a></td>' % (file_details['url'],
|
||||
file_details['filename'])
|
||||
output += '<td>%s</td>' % time.asctime(
|
||||
|
Loading…
x
Reference in New Issue
Block a user