Scan files with clamdscan #77

Merged
Anna Sirota merged 17 commits from scan-file into main 2024-04-12 19:11:30 +02:00
Showing only changes of commit 2288f80227 - Show all commits

View File

@ -5,13 +5,13 @@
{% if file_validation and not file_validation.is_ok %} {% if file_validation and not file_validation.is_ok %}
<section> <section>
<div class="card pb-3 pt-4 px-4 mb-3 ext-detail-download-danger"> <div class="card pb-3 pt-4 px-4 mb-3 ext-detail-download-danger">
<h3>⚠ Suspicious upload</h3> <h3>&nbsp;{% trans "Suspicious upload" %}</h3>
{% blocktrans asvar alert_text %}Scan of the {{ file }} indicates malicious content.{% endblocktrans %} {% blocktrans asvar alert_text %}Scan of the {{ file }} indicates malicious content.{% endblocktrans %}
<h4> <h4>
{{ alert_text }} {{ alert_text }}
{% if perms.files.view_file %}{# Moderators don't necessarily have access to the admin #} {% if perms.files.view_file %}{# Moderators don't necessarily have access to the admin #}
{% url 'admin:files_file_change' file.pk as admin_file_url %} {% url 'admin:files_file_change' file.pk as admin_file_url %}
<a href="{{ admin_file_url }}" target="_blank">See details</a> <a href="{{ admin_file_url }}" target="_blank">{% trans "See details" %}</a>
{% endif %} {% endif %}
</h4> </h4>
</div> </div>