mirror of
				https://github.com/Telecominfraproject/wlan-lanforge-scripts.git
				synced 2025-11-04 04:38:02 +00:00 
			
		
		
		
	lf_report.py lf_qa.py : added target="_blank" for href to open another tab
need to verify the lf_qa.py changes Signed-off-by: Chuck SmileyRekiere <chuck.smileyrekiere@candelatech.com>
This commit is contained in:
		@@ -299,7 +299,7 @@ class lf_report():
 | 
				
			|||||||
    def build_pdf_link(self,_pdf_link_name,_pdf_link_path):
 | 
					    def build_pdf_link(self,_pdf_link_name,_pdf_link_path):
 | 
				
			||||||
        self.pdf_link_html = """
 | 
					        self.pdf_link_html = """
 | 
				
			||||||
            <!-- pdf link -->
 | 
					            <!-- pdf link -->
 | 
				
			||||||
            <a href={pdf_link_path}>{pdf_link_name}</a>
 | 
					            <a href="{pdf_link_path}" target="_blank">{pdf_link_name}</a>
 | 
				
			||||||
            <br>
 | 
					            <br>
 | 
				
			||||||
                        """.format(pdf_link_path=_pdf_link_path,pdf_link_name=_pdf_link_name)
 | 
					                        """.format(pdf_link_path=_pdf_link_path,pdf_link_name=_pdf_link_name)
 | 
				
			||||||
        self.html += self.pdf_link_html
 | 
					        self.html += self.pdf_link_html
 | 
				
			||||||
@@ -307,7 +307,7 @@ class lf_report():
 | 
				
			|||||||
    def build_link(self,_link_name,_link_path):
 | 
					    def build_link(self,_link_name,_link_path):
 | 
				
			||||||
        self.link = """
 | 
					        self.link = """
 | 
				
			||||||
            <!-- link -->
 | 
					            <!-- link -->
 | 
				
			||||||
            <a href={link_path}>{link_name}</a>
 | 
					            <a href="{link_path}" target="_blank">{link_name} </a>
 | 
				
			||||||
            <br>
 | 
					            <br>
 | 
				
			||||||
        """.format(link_path=_link_path,link_name=_link_name)
 | 
					        """.format(link_path=_link_path,link_name=_link_name)
 | 
				
			||||||
        self.html += self.link
 | 
					        self.html += self.link
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -322,7 +322,7 @@ class csv_sqlite_dash():
 | 
				
			|||||||
                        self.children_div.append(html.A('{test_id}_{group}_{test_tag}_{test_rig}_kpi.html'
 | 
					                        self.children_div.append(html.A('{test_id}_{group}_{test_tag}_{test_rig}_kpi.html'
 | 
				
			||||||
                        .format(test_id=test_id_list[-1], group=group, test_tag=test_tag, test_rig=test_rig),
 | 
					                        .format(test_id=test_id_list[-1], group=group, test_tag=test_tag, test_rig=test_rig),
 | 
				
			||||||
                            href=kpi_html_path, target='_blank'))
 | 
					                            href=kpi_html_path, target='_blank'))
 | 
				
			||||||
                        self.html_results +="""<a href={kpi_html_path}>{test_id}_{group}_{test_tag}_{test_rig}_kpi.html<a>
 | 
					                        self.html_results +="""<a href={kpi_html_path}>{test_id}_{group}_{test_tag}_{test_rig}_kpi.html target="_blank" </a>
 | 
				
			||||||
                        """.format(kpi_html_path=kpi_html_path,test_id=test_id_list[-1], group=group, test_tag=test_tag, test_rig=test_rig)
 | 
					                        """.format(kpi_html_path=kpi_html_path,test_id=test_id_list[-1], group=group, test_tag=test_tag, test_rig=test_rig)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
                        # link to full test results
 | 
					                        # link to full test results
 | 
				
			||||||
@@ -333,7 +333,7 @@ class csv_sqlite_dash():
 | 
				
			|||||||
                        self.children_div.append(html.A('{test_id}_{group}_{test_tag}_{test_rig}_report.html'
 | 
					                        self.children_div.append(html.A('{test_id}_{group}_{test_tag}_{test_rig}_report.html'
 | 
				
			||||||
                        .format(test_id=test_id_list[-1], group=group, test_tag=test_tag, test_rig=test_rig),
 | 
					                        .format(test_id=test_id_list[-1], group=group, test_tag=test_tag, test_rig=test_rig),
 | 
				
			||||||
                            href=report_index_html_path, target='_blank'))
 | 
					                            href=report_index_html_path, target='_blank'))
 | 
				
			||||||
                        self.html_results +="""<a href={report_index_html_path}>{test_id}_{group}_{test_tag}_{test_rig}_report.html<a>
 | 
					                        self.html_results +="""<a href={report_index_html_path}>{test_id}_{group}_{test_tag}_{test_rig}_report.html target="_blank"</a>
 | 
				
			||||||
                        """.format(report_index_html_path=report_index_html_path,test_id=test_id_list[-1], group=group, test_tag=test_tag, test_rig=test_rig)
 | 
					                        """.format(report_index_html_path=report_index_html_path,test_id=test_id_list[-1], group=group, test_tag=test_tag, test_rig=test_rig)
 | 
				
			||||||
                        self.children_div.append(html.Br())
 | 
					                        self.children_div.append(html.Br())
 | 
				
			||||||
                        self.children_div.append(html.Br())
 | 
					                        self.children_div.append(html.Br())
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user