11<%
22import os
33
4- def display_log (logs , issuer , profile ):
4+ def display_log (base , logs , issuer , profile ):
55 if issuer:
66 if profile:
77 el = " <h3>A list of tests that are saved on disk for this profile:</h3>"
@@ -14,15 +14,16 @@ def display_log(logs, issuer, profile):
1414
1515 if profile:
1616 for name, path in logs:
17- el += ' <li><a href="%s " download="%s .html">%s </a>' % (path, name, name)
17+ el += ' <li><a href="{}{} " download="{}{} .html">{} </a>' .format(
18+ base, path, base, name, name)
1819 elif ' issuer' :
1920 for name, path in logs:
20- _tarfile = " /%s .tar" % path.replace(" log" , " tar" )
21- el += ' <li><a href="/ %s "> %s </a> tar file:<a href="%s ">Download logs</a>' % (
22- path, name, _tarfile)
21+ _tarfile = " {} /%s .tar" .format(base, path.replace(" log" , " tar" ) )
22+ el += ' <li><a href="{}{} "> {} </a> tar file:<a href="{}{} ">Download logs</a>' .format (
23+ base, path, name, base, _tarfile)
2324 else :
2425 for name, path in logs:
25- el += ' <li><a href="%s ">%s </a>' % (path, name)
26+ el += ' <li><a href="{}{} ">%s </a>' % (base, path, name)
2627 el += " </ul>"
2728 return el
2829%>
@@ -78,7 +79,7 @@ def display_log(logs, issuer, profile):
7879 <!-- Main component for a primary marketing message or call to action -->
7980 <div class =" jumbotron" >
8081 <h1 >HEART OIDC OP Test logs</h1 >
81- ${ display_log(logs, issuer, profile)}
82+ ${ display_log(basr, logs, issuer, profile)}
8283 </div >
8384
8485 </div > <!-- /container -->
0 commit comments