|
18 | 18 | {% trans "IH" as t_ih %} |
19 | 19 | {% trans "None" as t_none %} |
20 | 20 | <tr> |
21 | | - {% if incident_show_id %}<th>ID</th>{% endif %} |
| 21 | + <th>ID</th> |
22 | 22 | {% 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> |
26 | 24 | <th>{% trans "Business Lines" %}</th> |
| 25 | + {% include 'events/column.html' with name=t_category field='category' %} |
27 | 26 | {% include 'events/column.html' with name=t_severity field='severity' %} |
| 27 | + {% include 'events/column.html' with name=t_subject field='subject' %} |
28 | 28 | {% include 'events/column.html' with name=t_status field='status' %} |
| 29 | + <th>{% trans "Assignee" %}</th> |
| 30 | + |
29 | 31 | {% 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' %} |
32 | 32 | {% 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' %} |
35 | 33 | {% endif %} |
36 | | - {% include 'events/column.html' with name=t_ih field='opened_by' %} |
37 | | - <th>{% trans "Assignee" %}</th> |
38 | 34 | <th>{% trans "Edit" %}</th> |
39 | 35 | </tr> |
40 | 36 | </thead> |
41 | 37 | <tbody> |
42 | 38 | {% for incident in incident_list %} |
43 | 39 | {% has_perm 'incidents.handle_incidents' obj=incident as can_handle_incident %} |
44 | 40 | <tr class='{{ incident.status }}'> |
45 | | - {% if incident_show_id %}<td>{{ incident|object_id }}</td>{% endif %} |
| 41 | + <td>{{ incident|object_id }}</td> |
46 | 42 | <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 | + |
56 | 50 | <td>{{ incident.category }}</td> |
| 51 | + <td><span class='badge threatcon-{{ incident.severity }}'>{{ incident.severity }}</span></td> |
57 | 52 | {% if incident.is_incident %} |
58 | 53 | <td><a href="{% url 'incidents:details' incident.id %}">{{ incident.subject }}</a></td> |
59 | 54 | {% else %} |
60 | 55 | <td><a href="{% url 'events:details' incident.id %}">{{ incident.subject }}</a></td> |
61 | 56 | {% endif %} |
62 | | - <td>{{ incident.get_business_lines_names }}</td> |
63 | | - <td><span class='badge threatcon-{{ incident.severity }}'>{{ incident.severity }}</span></td> |
64 | 57 | <td>{{ incident.get_status_display }}</td> |
| 58 | + <td>{{ incident.assignee }}</td> |
| 59 | + |
65 | 60 |
|
66 | 61 | {% if incident_view %} |
67 | | - <td>{{ incident.detection }}</td> |
68 | | - <td>{{ incident.actor }}</td> |
69 | 62 | <td> |
70 | 63 | {% if incident.comments_set.count > 0%} |
71 | 64 | {{ incident.get_last_comment.action }} |
|
76 | 69 | {{ t_none }} |
77 | 70 | {%endif%} |
78 | 71 | </td> |
79 | | - <td>{{ incident.plan|default:t_none }}</td> |
80 | | - <td>{{ incident.get_confidentiality_display }}</td> |
81 | 72 | {% endif %} |
82 | 73 |
|
83 | | - <td>{{ incident.opened_by }}</td> |
84 | | - <td>{{ incident.assignee }}</td> |
85 | 74 | <td> |
86 | 75 | {% if can_handle_incident %} |
87 | 76 | <a href="{% url 'incidents:edit' incident.id %}"><span class='glyphicon glyphicon-pencil'></span></a> |
|
0 commit comments