File tree Expand file tree Collapse file tree
scanpipe/templates/scanpipe Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3535 </ a >
3636 {% endif %}
3737 {% if package.download_url %}
38- < a class ="is-grey-link ml-1 " href ="{{ package.download_url }} " title ="Download " target =" _blank " title =" {{ package.download_url }} ">
38+ < a class ="is-grey-link ml-1 " href ="{{ package.download_url }} " title ="Download {{ package.download_url }} " target =" _blank ">
3939 < i class ="fa-solid fa-download fa-sm "> </ i >
4040 </ a >
41- < a class ="is-grey-link ml-1 " title ="Scan " href ="{% url 'project_add' %}?name=package-{{ package.uuid }}&input_urls={{ package.download_url }}&pipeline=scan_single_package ">
42- < i class ="fa-solid fa-barcode fa-sm "> </ i >
43- </ a >
41+ {% if package.analysis_subproject %}
42+ < a class ="is-grey-link ml-1 " title ="View scan page " href ="{% url 'project_detail' package.analysis_subproject.slug %} " target ="_blank ">
43+ < i class ="fa-solid fa-eye fa-sm "> </ i >
44+ </ a >
45+ {% else %}
46+ < a class ="is-grey-link ml-1 " title ="Scan package " href ="{% url 'project_add' %}?name=package-{{ package.uuid }}&input_urls={{ package.download_url }}&pipeline=scan_single_package " target ="_blank ">
47+ < i class ="fa-solid fa-barcode fa-sm "> </ i >
48+ </ a >
49+ {% endif %}
4450 {% endif %}
4551 </ div >
4652 </ div >
You can’t perform that action at this time.
0 commit comments