[bugfix] fixed footer output to produce valid html when using a logo
new parameters in for paramters.yaml file: - added parameter logo_alt_text - added parameter logo_height
This commit is contained in:
parent
a905386ee8
commit
00f1a78ed2
@ -48,14 +48,15 @@ def finish_html_table():
|
|||||||
return '</table>\n'
|
return '</table>\n'
|
||||||
|
|
||||||
|
|
||||||
def html_footer(footer_logo=None):
|
def html_footer(footer_logo=None, alt_text='Logo', height=30):
|
||||||
footer = ['</body>']
|
|
||||||
if footer_logo:
|
if footer_logo:
|
||||||
logo_items = [f'<div class="footer">',
|
footer = [f'<div class="footer">',
|
||||||
f' <img style="float: right; padding: 10px;" src="{footer_logo}" height=30px>',
|
f' <img style="float: right; padding: 10px;" src="{footer_logo}" height={height} alt="{alt_text}">',
|
||||||
f'</div>']
|
f'</div>']
|
||||||
footer += logo_items
|
else:
|
||||||
footer.append('</html>\n')
|
footer = []
|
||||||
|
footer.append('</body>')
|
||||||
|
footer.append('</html>')
|
||||||
|
|
||||||
footer = _convert_to_textstring(footer)
|
footer = _convert_to_textstring(footer)
|
||||||
return footer
|
return footer
|
||||||
|
Loading…
x
Reference in New Issue
Block a user