Skip to content

Commit 640fa7c

Browse files
author
Hugo
authored
Merge pull request #10 from HugoPouliquen/tp-add_file_upload_section_alltime
[MASTER] Tp add file upload section alltime
2 parents 79bbad1 + 5d89786 commit 640fa7c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

fir_artifacts/templates/fir_artifacts/plugins/details_sidebar.html

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@
33
{% load fir_artifacts %}
44
{% load authorization %}
55
{% has_perm 'incidents.handle_incidents' obj=event as can_handle_incident %}
6-
<div class='widget {% if event.file_set.count == 0 %}hidden{% endif%}' id='details-files'>
6+
<div class='widget' id='details-files'>
77
<h4 class='widget'>{% trans "Related files" %}</h4>
8-
{% if event.file_set.count > 0 %}
98
<table class='table table-condensed files fixed'>
109
<thead>
1110
<tr>
@@ -37,7 +36,6 @@ <h4 class='widget'>{% trans "Related files" %}</h4>
3736
</tr>
3837
{% endfor %}
3938
</table>
40-
{% endif %}
4139
{% if can_handle_incident %}
4240
<form id='upload_form' enctype="multipart/form-data" action="{% url 'artifacts:upload_file' event|content_type event.id %}" method='POST'>
4341
{% csrf_token %}

0 commit comments

Comments
 (0)