{% extends 'base.html' %} {% load fontawesome_5 %} {% block content %}
Apps
{% if user.is_authenticated %} {% if not patterns %}
To create apps, you must first create the model
New App {% else %}
New App {% endif %} {% else %}
To create apps, you must have and account
New App {% endif %}
{% if apps %}
ID |
Name |
Created by |
Description |
Scans |
|
{% for app in apps %}
{{ app.id }} |
{{ app.name }} |
{{ app.user.username }} |
{{ app.description }} |
ID |
Description |
Version |
Created On |
Status |
Progress |
{% if settings.VIRUSTOTAL_ENABLED %}
VT |
{% endif %}
Findings |
By Severity |
{% for scan in scans %} {% if scan.app.id == app.id %}
{{ scan.id }} |
{{ scan.description }} |
{{ scan.version_code }} |
{{ scan.created_on }} |
{{ scan.status }} |
{{ scan.progress }} % |
{% for id, scan_data in scans_data.items %} {% if id == scan.id %} {% if settings.VIRUSTOTAL_ENABLED %} {% if scan_data.antivirus.malicious > 0 %}
{% fa5_icon 'shield-alt' color='red' %} {{ scan_data.antivirus.malicious }} |
{% else %}
{% fa5_icon 'shield-alt' color='green' %} {{ scan_data.antivirus.malicious }} |
{% endif %} {% endif %}
{{ scan.findings }} |
{% for severity, number in scan_data.findings.items %}
{{ severity }} |
{% if severity == 'Critical' %}
{% fa5_icon 'exclamation-circle' color='black' %} {{ number }} |
{% elif severity == 'High' %}
{% fa5_icon 'exclamation-circle' color='red' %} {{ number }} |
{% elif severity == 'Medium'%}
{% fa5_icon 'exclamation-circle' color='orange' %} {{ number }} |
{% elif severity == 'Low' %}
{% fa5_icon 'exclamation-circle' color='blue' %} {{ number }} |
{% else %}
{% fa5_icon 'check-circle' color='green' %} {{ number }} |
{% endif %}
{% endfor %}
|
{% endif %} {% endfor %}
{% endif %} {% endfor %}
|
{% if user.is_authenticated %}
New Scan |
{% endif %}
{% endfor %}
{% endif %} {% endblock %}