Skip to content

Commit

Permalink
Add 'breakable' optional argument to report_build_html_table method
Browse files Browse the repository at this point in the history
https://bugzilla.redhat.com/show_bug.cgi?id=1428536

Add 'breakable' optional argument to report_build_html_table method
for fixing bad formatting of VM Chargeback Preview Report table.
  • Loading branch information
Hilda Stastna committed Mar 26, 2018
1 parent cd1068f commit e9ee14e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/vmdb/global_methods.rb
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,9 @@ def ui_lookup_for_title(text)
end

# Wrap a report html table body with html table tags and headers for the columns
def report_build_html_table(report, table_body)
def report_build_html_table(report, table_body, breakable = true)
html = ''
html << "<table class='table table-striped table-bordered'>"
html << "<table class=\"table table-striped table-bordered #{breakable ? '' : 'non-breakable'}\">"
html << "<thead>"
html << "<tr>"

Expand Down

0 comments on commit e9ee14e

Please sign in to comment.