<%= critical %> incidente/i critico/i aperto/i — <%= link_to "Vedi dashboard Ops", admin_ops_path %>
+ <% elsif warnings.positive? %> +<%= warnings %> warning — <%= link_to "Dashboard Ops", admin_ops_path %>
+ <% else %> +Nessun incidente aperto. <%= link_to "Dashboard Ops", admin_ops_path %>
+ <% end %> +| Severità | +Tipo | +Titolo | +Occ. | +Ultimo | ++ |
|---|---|---|---|---|---|
| <%= inc.severity %> | +<%= inc.kind %> | +
+ <%= inc.title %>
+ <% if inc.message.present? %>
+ <%= truncate(inc.message, length: 120) %>
+ <% end %>
+ |
+ <%= inc.occurrence_count %> | +<%= inc.last_seen_at&.strftime("%d/%m %H:%M") %> | ++ <% unless inc.status == 'acknowledged' %> + <%= button_to "Preso in carico", acknowledge_admin_op_path(inc), method: :post, class: "admin-btn admin-btn--sm" %> + <% end %> + <%= button_to "Risolvi", resolve_admin_op_path(inc), method: :post, class: "admin-btn admin-btn--sm" %> + <%= button_to "Mute 24h", mute_admin_op_path(inc), method: :post, class: "admin-btn admin-btn--sm admin-btn--outline" %> + | +
Nessun incidente aperto. La piattaforma risulta sana.
+ <% end %> +| Severità | Tipo | Titolo | Occ. | Risolto |
|---|---|---|---|---|
| <%= inc.severity %> | +<%= inc.kind %> | +<%= inc.title %> | +<%= inc.occurrence_count %> | +<%= inc.updated_at.strftime("%d/%m %H:%M") %> | +
Nessun incidente risolto di recente.
+ <% end %> +