|
35 | 35 | </ul>
|
36 | 36 | </div>
|
37 | 37 |
|
38 |
| - <section class="mx-5 message is-dark"> |
| 38 | + <section class="mx-5 message is-dark mb-2"> |
39 | 39 | <div class="message-header is-flex">
|
40 |
| - <p> |
41 |
| - {{ object.name }} |
42 |
| - | {{ object.size|filesizeformat }} |
43 |
| - | <a class="has-text-white" href="{{ object.get_raw_url }}?as_attachment=1"><i class="fas fa-download"></i></a> |
44 |
| - <br> |
45 |
| - <span style="font-size: 10px;">{{ object.path }}</span> |
46 |
| - </p> |
47 | 40 | <div>
|
| 41 | + <div> |
| 42 | + {{ object.name }} |
| 43 | + | {{ object.size|filesizeformat }} |
| 44 | + | <a class="has-text-white" href="{{ object.get_raw_url }}?as_attachment=1"><i class="fas fa-download"></i></a> |
| 45 | + <div class="mt-2"> |
| 46 | + {% if object.is_binary %} |
| 47 | + {% include "scanpipe/includes/dropdown_hoverable.html" with trigger='<span class="tag is-info">Binary</span>' content="Binary executable or data file. Text content is extracted from binary." only %} |
| 48 | + {% endif %} |
| 49 | + {% if object.is_text %} |
| 50 | + {% include "scanpipe/includes/dropdown_hoverable.html" with trigger='<span class="tag is-info">Text</span>' content="Plain text file." only %} |
| 51 | + {% endif %} |
| 52 | + {% if object.is_archive %} |
| 53 | + {% include "scanpipe/includes/dropdown_hoverable.html" with trigger='<span class="tag is-info">Archive</span>' content="Archive or compressed file. Not scanned directly." only %} |
| 54 | + {% endif %} |
| 55 | + {% if object.is_key_file %} |
| 56 | + {% include "scanpipe/includes/dropdown_hoverable.html" with trigger='<span class="tag is-info">Key file</span>' content="Top-level file with key content and metadata and either a legal, readme or package manifest." only %} |
| 57 | + {% endif %} |
| 58 | + {% if object.is_media %} |
| 59 | + {% include "scanpipe/includes/dropdown_hoverable.html" with trigger='<span class="tag is-info">Media</span>' content="Image, sound, video or similar media file." only %} |
| 60 | + {% endif %} |
| 61 | + </div> |
| 62 | + </div> |
| 63 | + <div class="mt-2" style="font-size: 10px;"> |
| 64 | + {{ object.path }} |
| 65 | + </div> |
| 66 | + </div> |
| 67 | + <div style="flex-basis: min-content;"> |
48 | 68 | <button class="button previous-btn is-dark" disabled><i class="fas fa-arrow-up mr-2"></i>Previous</button>
|
49 | 69 | <button class="button next-btn is-dark" disabled><i class="fas fa-arrow-down mr-2"></i>Next</button>
|
50 | 70 | </div>
|
|
0 commit comments