Skip to content

Commit

Permalink
Merge 2541530 into f262282
Browse files Browse the repository at this point in the history
  • Loading branch information
Alex L. Urban committed Mar 26, 2019
2 parents f262282 + 2541530 commit e8f7e12
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion gwdetchar/io/html.py
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,8 @@ def write_flag_html(flag, span=None, id=0, parent='accordion',
return page()


def write_footer(about=None, link=None, issues=None, linkstyle='color:#eee;'):
def write_footer(about=None, link=None, issues=None, content=None,
linkstyle='color:#eee;'):
"""Write a <footer> for a bootstrap page
Parameters
Expand All @@ -498,6 +499,9 @@ def write_footer(about=None, link=None, issues=None, linkstyle='color:#eee;'):
issues : `str`, optional
HTML link to issue report page
content : `str` or `~MarkupPy.markup.page`, optional
additional footer content
linkstyle : `str`, optional
style options for rendering `link`
Expand Down Expand Up @@ -533,6 +537,11 @@ def write_footer(about=None, link=None, issues=None, linkstyle='color:#eee;'):
# link to 'about'
if about is not None:
page.a('How was this page generated?', href=about, style=linkstyle)
# extra content
if isinstance(content, markup.page):
page.add(str(content))
elif content is not None:
page.p(str(content))
page.div.close() # col-md-12
page.div.close() # row
page.div.close() # container
Expand Down

0 comments on commit e8f7e12

Please sign in to comment.