Skip to content

Commit

Permalink
remove donwload button if no archive
Browse files Browse the repository at this point in the history
  • Loading branch information
BenediktMKuehne committed Jul 9, 2024
1 parent 4535f48 commit 6800f6f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions embark/templates/dashboard/individualReportDashboard.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,11 @@ <h1><center>Firmware security scanning details</center></h1>
<form action={% url 'embark-html-report-index' analysis_id 'index.html' %} method='get'>
<button class="btn buttonRowElem" type="submit">Open Report</button>
</form>
<form action={% url 'embark-download' analysis_id %} method='get'>
<button class="btn buttonRowElem" type="submit">Download Report</button>
</form>
{% if firmware.zip_file is not None %}
<form action={% url 'embark-download' analysis_id %} method='get'>
<button class="btn buttonRowElem" type="submit">Download Report</button>
</form>
{% endif %}
<!-- TODO add another uploader/start pattern for firmware_id-->
<form action={% url 'embark-uploader-home' %} method='get'>
<button type="submit" class="btn buttonRowElem" >Rescan</button>
Expand Down

0 comments on commit 6800f6f

Please sign in to comment.