|
| 1 | +{# |
| 2 | + # Licensed under the Apache License, Version 2.0 (the "License"); |
| 3 | + # you may not use this file except in compliance with the License. |
| 4 | + # You may obtain a copy of the License at |
| 5 | + # |
| 6 | + # http://www.apache.org/licenses/LICENSE-2.0 |
| 7 | + # |
| 8 | + # Unless required by applicable law or agreed to in writing, software |
| 9 | + # distributed under the License is distributed on an "AS IS" BASIS, |
| 10 | + # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 11 | + # See the License for the specific language governing permissions and |
| 12 | + # limitations under the License. |
| 13 | +-#} |
| 14 | +{% extends "admin/base.html" %} |
| 15 | + |
| 16 | +{% import "admin/utils/pagination.html" as pagination %} |
| 17 | + |
| 18 | +{% block title %}Malware Verdicts{% endblock %} |
| 19 | + |
| 20 | +{% block breadcrumb %} |
| 21 | + <li class="active">Verdicts</li> |
| 22 | +{% endblock %} |
| 23 | + |
| 24 | +{% block content %} |
| 25 | +<div class="box box-primary"> |
| 26 | + <div class="box-body table-responsive no-padding"> |
| 27 | + <table class="table table-hover"> |
| 28 | + <tr> |
| 29 | + <th>Object</th> |
| 30 | + <th>Check</th> |
| 31 | + <th>Classification</th> |
| 32 | + <th>Confidence</th> |
| 33 | + <th>Detail</th> |
| 34 | + </tr> |
| 35 | + {% for verdict in verdicts %} |
| 36 | + <tr> |
| 37 | + <td>{% include 'object_link.html' %}</td> |
| 38 | + <td> |
| 39 | + <a href="{{ request.route_path('admin.checks.detail', check_name=verdict.check.name) }}"> |
| 40 | + {{ verdict.check.name }} v{{ verdict.check.version }} |
| 41 | + </a> |
| 42 | + </td> |
| 43 | + <td> |
| 44 | + <span title="{{ verdict.classification.value }}"> |
| 45 | + <i class="fa fa-exclamation"></i> |
| 46 | + {% if verdict.classification.value == 'indeterminate' %} |
| 47 | + <i class="fa fa-exclamation"></i> |
| 48 | + {% elif verdict.classification.value == 'threat' %} |
| 49 | + <i class="fa fa-exclamation"></i> |
| 50 | + <i class="fa fa-exclamation"></i> |
| 51 | + {% endif %} |
| 52 | + </span> |
| 53 | + </td> |
| 54 | + <td> |
| 55 | + <span title="{{ verdict.confidence.value }}"> |
| 56 | + <i class="fa fa-star"></i> |
| 57 | + {% if verdict.confidence.value == 'medium' %} |
| 58 | + <i class="fa fa-star"></i> |
| 59 | + {% elif verdict.confidence.value == 'high' %} |
| 60 | + <i class="fa fa-star"></i> |
| 61 | + <i class="fa fa-star"></i> |
| 62 | + {% endif %} |
| 63 | + </span> |
| 64 | + </td> |
| 65 | + <td> |
| 66 | + <a href="{{ request.route_path('admin.verdicts.detail', verdict_id=verdict.id) }}"> |
| 67 | + Detail |
| 68 | + </a> |
| 69 | + </td> |
| 70 | + </tr> |
| 71 | + {% else %} |
| 72 | + <tr> |
| 73 | + <td colspan="5"> |
| 74 | + <center> |
| 75 | + <i>No verdicts!</i> |
| 76 | + </center> |
| 77 | + </td> |
| 78 | + </tr> |
| 79 | + {% endfor %} |
| 80 | + </table> |
| 81 | + <div class="box-footer"> |
| 82 | + <div class="col-sm-5"> |
| 83 | + {{ pagination.summary(verdicts) }} |
| 84 | + </div> |
| 85 | + <div class="col-sm-7"> |
| 86 | + <div class="pull-right"> |
| 87 | + {{ pagination.paginate(verdicts) }} |
| 88 | + </div> |
| 89 | + </div> |
| 90 | + </div> |
| 91 | + </div> |
| 92 | +</div> |
| 93 | +{% endblock content %} |
0 commit comments