Skip to content

Commit eff5d0a

Browse files
author
root
committed
Modifier affichage dans dashboard
1 parent 4107a91 commit eff5d0a

File tree

1 file changed

+17
-28
lines changed

1 file changed

+17
-28
lines changed

incidents/templates/events/table.html

Lines changed: 17 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -18,54 +18,47 @@
1818
{% trans "IH" as t_ih %}
1919
{% trans "None" as t_none %}
2020
<tr>
21-
{% if incident_show_id %}<th>ID</th>{% endif %}
21+
<th>ID</th>
2222
{% include 'events/column.html' with name=t_date field='date' %}
23-
<th></th>
24-
{% include 'events/column.html' with name=t_category field='category' %}
25-
{% include 'events/column.html' with name=t_subject field='subject' %}
23+
<th>Type</th>
2624
<th>{% trans "Business Lines" %}</th>
25+
{% include 'events/column.html' with name=t_category field='category' %}
2726
{% include 'events/column.html' with name=t_severity field='severity' %}
27+
{% include 'events/column.html' with name=t_subject field='subject' %}
2828
{% include 'events/column.html' with name=t_status field='status' %}
29+
<th>{% trans "Assignee" %}</th>
30+
2931
{% if incident_view %}
30-
{% include 'events/column.html' with name=t_detection field='detection' %}
31-
{% include 'events/column.html' with name=t_leader field='actor' %}
3232
{% include 'events/column.html' with name=t_lastaction field='last_action' %}
33-
{% include 'events/column.html' with name=t_plan field='plan' %}
34-
{% include 'events/column.html' with name=t_lvl field='confidentiality' %}
3533
{% endif %}
36-
{% include 'events/column.html' with name=t_ih field='opened_by' %}
37-
<th>{% trans "Assignee" %}</th>
3834
<th>{% trans "Edit" %}</th>
3935
</tr>
4036
</thead>
4137
<tbody>
4238
{% for incident in incident_list %}
4339
{% has_perm 'incidents.handle_incidents' obj=incident as can_handle_incident %}
4440
<tr class='{{ incident.status }}'>
45-
{% if incident_show_id %}<td>{{ incident|object_id }}</td>{% endif %}
41+
<td>{{ incident|object_id }}</td>
4642
<td class='incident_date_column'>{{ incident.date|date:'Y-m-d' }}</td>
47-
<td>
48-
{% if can_handle_incident %}<a href="{% url 'ajax:toggle_star' incident.id %}" class='star'>{%endif%}
49-
{% if incident.is_starred %}
50-
<i class='glyphicon glyphicon-star star'></i>
51-
{% else %}
52-
<i class='glyphicon glyphicon-star-empty star'></i>
53-
{% endif %}
54-
{% if can_handle_incident %}</a>{%endif%}
55-
</td>
43+
{% if incident.is_incident %}
44+
<td> Incident </td>
45+
{% else %}
46+
<td> Event</td>
47+
{% endif %}
48+
<td>{{ incident.get_business_lines_names }}</td>
49+
5650
<td>{{ incident.category }}</td>
51+
<td><span class='badge threatcon-{{ incident.severity }}'>{{ incident.severity }}</span></td>
5752
{% if incident.is_incident %}
5853
<td><a href="{% url 'incidents:details' incident.id %}">{{ incident.subject }}</a></td>
5954
{% else %}
6055
<td><a href="{% url 'events:details' incident.id %}">{{ incident.subject }}</a></td>
6156
{% endif %}
62-
<td>{{ incident.get_business_lines_names }}</td>
63-
<td><span class='badge threatcon-{{ incident.severity }}'>{{ incident.severity }}</span></td>
6457
<td>{{ incident.get_status_display }}</td>
58+
<td>{{ incident.assignee }}</td>
59+
6560

6661
{% if incident_view %}
67-
<td>{{ incident.detection }}</td>
68-
<td>{{ incident.actor }}</td>
6962
<td>
7063
{% if incident.comments_set.count > 0%}
7164
{{ incident.get_last_comment.action }}
@@ -76,12 +69,8 @@
7669
{{ t_none }}
7770
{%endif%}
7871
</td>
79-
<td>{{ incident.plan|default:t_none }}</td>
80-
<td>{{ incident.get_confidentiality_display }}</td>
8172
{% endif %}
8273

83-
<td>{{ incident.opened_by }}</td>
84-
<td>{{ incident.assignee }}</td>
8574
<td>
8675
{% if can_handle_incident %}
8776
<a href="{% url 'incidents:edit' incident.id %}"><span class='glyphicon glyphicon-pencil'></span></a>

0 commit comments

Comments
 (0)