mirror of
https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
synced 2025-11-03 04:07:52 +00:00
lf_qa.py filxed the table formatting <td> does not need <p>
Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
This commit is contained in:
@@ -113,24 +113,15 @@ class csv_sqlite_dash():
|
|||||||
# <table border="1" class="dataframe">
|
# <table border="1" class="dataframe">
|
||||||
def get_suite_html(self):
|
def get_suite_html(self):
|
||||||
suite_html_results = """
|
suite_html_results = """
|
||||||
<table>
|
<table class="dataframe" border="1">
|
||||||
<style>
|
|
||||||
table, tr, td, th {
|
|
||||||
border: 1px solid gray;
|
|
||||||
padding: 5 5 5 5;
|
|
||||||
margin: 0;
|
|
||||||
border: 0;
|
|
||||||
text-align: center;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr style="text-align: center;">
|
||||||
<th>Test</th>
|
<th>Test</th>
|
||||||
<th>Test_Tag</th>
|
<th>Test_Tag</th>
|
||||||
<th>Links</th>
|
<th>Links</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
"""
|
"""
|
||||||
|
|
||||||
path = Path(self.path)
|
path = Path(self.path)
|
||||||
@@ -153,7 +144,8 @@ class csv_sqlite_dash():
|
|||||||
kpi_path = os.path.join(parent_path,"kpi.csv")
|
kpi_path = os.path.join(parent_path,"kpi.csv")
|
||||||
test_id, test_tag = self.get_test_id_test_tag(kpi_path)
|
test_id, test_tag = self.get_test_id_test_tag(kpi_path)
|
||||||
suite_html_results += """
|
suite_html_results += """
|
||||||
<tr><td><p>{}</td></p><td><p>{}</td></p><td><a href="{}" target="_blank">html</a> / <a href="{}" target="_blank">pdf</a></td></tr>
|
<tr style="text-align: center; margin-bottom: 0; margin-top: 0;">
|
||||||
|
<td>{}</td><td>{}</td><td><a href="{}" target="_blank">html</a> / <a href="{}" target="_blank">pdf</a></td></tr>
|
||||||
""".format(test_id,test_tag,html_path,pdf_path)
|
""".format(test_id,test_tag,html_path,pdf_path)
|
||||||
suite_html_results += """
|
suite_html_results += """
|
||||||
</tbody>
|
</tbody>
|
||||||
|
|||||||
Reference in New Issue
Block a user