Scan files with clamdscan #77
@ -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>⚠ {% 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>
|
||||||
|
Loading…
Reference in New Issue
Block a user