For VirusTotal_Scan long report summary, check if content.permalink

exists, and use that to link back to VirusTotal report instead of
hand-crafted link, only when the scan was a scan of a URL.
This commit is contained in:
Sebastian Reitenbach 2021-02-22 17:40:03 +01:00
parent 0ef35dfab1
commit 37cb7de1ee

View File

@ -21,12 +21,12 @@
<dt>Last analysis date</dt>
<dd>{{content.scan_date}}</dd>
</dl>
<dl class="dl-horizontal" ng-if="artifact.dataType === 'url'">
<dl class="dl-horizontal" ng-if="content.permalink">
<dt>Virus Total</dt>
<dd>
<span>
<i class="fa fa-search"></i>
<a ng-href="https://www.virustotal.com/en/url/{{artifact.data | sha256}}/analysis/" target="_blank">
<a href="{{content.permalink}}" target="_blank">
View Full Report</a>
</span>
</dd>