
- Implemented a new view for the risk matrix, allowing users to visualize risks based on their impact and likelihood. - Added filters for category, asset, and process in the risk listing view. - Enhanced risk listing template to include new filters and improved layout. - Introduced new CSS variables for better color management in the design. - Updated existing template tags to support new functionalities, including score background class mapping. - Modified existing risk listing to display residual risk details alongside gross risk. - Added new risk matrix HTML template with tabbed interface for gross and net risk views.
28 lines
No EOL
1.4 KiB
Python
28 lines
No EOL
1.4 KiB
Python
from django.urls import path
|
|
from . import views
|
|
|
|
app_name = "risks"
|
|
|
|
urlpatterns = [
|
|
path("", views.dashboard, name="dashboard"),
|
|
|
|
path("risks/index", views.dashboard, name="index"),
|
|
path("risks/list_risks", views.list_risks, name="list_risks"),
|
|
path("risks/risks/<int:id>", views.show_risk, name="show_risk"),
|
|
path("risks/list_controls", views.list_controls, name="list_controls"),
|
|
path("risks/controls/<int:id>", views.show_control, name="show_control"),
|
|
path("risks/list_incidents", views.list_incidents, name="list_incidents"),
|
|
path("risks/incidents/<int:id>", views.show_incident, name="show_incident"),
|
|
path("risks/risk_matrix", views.risk_matrix, name="risk_matrix"),
|
|
|
|
# Notifications
|
|
path("notifications/", views.notifications, name="notifications"),
|
|
path("notifications/<int:pk>/read", views.notification_mark_read, name="notification_mark_read"),
|
|
path("notifications/mark_all_read", views.notification_mark_all_read, name="notification_mark_all_read"),
|
|
|
|
# Risks status
|
|
path("risks/<int:id>/status", views.update_risk_status, name="update_risk_status"),
|
|
path("controls/<int:id>/status", views.update_control_status, name="update_control_status"),
|
|
path("incidents/<int:id>/status", views.update_incident_status, name="update_incident_status"),
|
|
path("residuals/<int:risk_id>/review", views.update_residual_review, name="update_residual_review"),
|
|
] |