Add more variables that can be used in href attributes in column definitions
@@ -143,7 +143,11 @@ def create_link(href, base_dir, runResult=None, href_base=None):
('sourcefile_name', os.path.basename(source_file)),
('sourcefile_path', os.path.dirname(source_file) or '.'),
('sourcefile_path_abs', os.path.dirname(os.path.abspath(source_file))),
- ]
+ ] + ([
+ ('logfile_name', os.path.basename(runResult.log_file)),
+ ('logfile_path', os.path.dirname(os.path.relpath(runResult.log_file, href_base or '.')) or '.'),
+ ('logfile_path_abs', os.path.dirname(os.path.abspath(runResult.log_file))),
+ ] if runResult.log_file else [])
source_file = os.path.relpath(runResult.task_id[0], href_base or '.') if runResult else None
