SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.
Python attacksurfacecticybersecurityfootprintinghackinginformation-gatheringinformation-securityinfosecintelligence-gatheringosintosint-frameworkosint-reconnaissanceosint-toolpentestingpythonreconsecurity-toolsthreat-intelligencethreatintel
sfwebui: add scan status badge to scan info page heading
Brendan Coles29f69313734a
diff --git a/dyn/scaninfo.tmpl b/dyn/scaninfo.tmplindex 3be29034..2306d476 100644--- a/dyn/scaninfo.tmpl+++ b/dyn/scaninfo.tmpl@@ -1,6 +1,17 @@## -*- coding: utf-8 -*-<%include file="HEADER.tmpl"/>-<h2>${name} <img id="loader" src="${docroot}/static/img/loader.gif"></h2>+<%+ if status == "FINISHED":+ statusy = "alert-success"+ elif status.startswith("ABORT"):+ statusy = "alert-warning"+ elif status == "RUNNING" or status == "STARTED" or status == "STARTING" or status == "INITIALIZING":+ statusy = "alert-info"+ elif status == "FAILED":+ statusy = "alert-danger"+ end+%>+<h2>${name} <span class='badge ${statusy}'>${status}</span> <img id="loader" src="${docroot}/static/img/loader.gif"></h2><div class="btn-toolbar" role="toolbar" style='padding-bottom: 10px'><div class="btn-group"><a id='btn-status' class="btn btn-default" onClick='scanSummaryView("${id}")'><i class='glyphicon glyphicon-eye-open'></i> Summary</a>