diff --git a/CHANGELOG.md b/CHANGELOG.md index 47065c1f0..061326f37 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,9 +4,13 @@ GovReady-Q Release Notes v999 (April XX, 2021) ------------------------- +**UI changes** + +* Display system impact level on project page. -[Add changes here] +**Data changes** +* Use statement type `fisma_impact_level` to track impact level of a system. v0.9.3.3 (April 13, 2021) ------------------------- diff --git a/siteapp/views.py b/siteapp/views.py index 13a22c7d2..5ae35e64e 100644 --- a/siteapp/views.py +++ b/siteapp/views.py @@ -946,10 +946,18 @@ def project(request, project): if approx_compliance_degrees > 358: approx_compliance_degrees = 358 + # Fetch statement defining FISMA impact level if set + impact_level_smts = project.system.root_element.statements_consumed.filter(statement_type="fisma_impact_level") + if len(impact_level_smts) > 0: + impact_level = impact_level_smts[0].body + else: + impact_level = None + # Render. return render(request, "project.html", { "is_project_page": True, "project": project, + "impact_level": impact_level, "controls_status_count": project.system.controls_status_count, "poam_status_count": project.system.poam_status_count, diff --git a/templates/project.html b/templates/project.html index 0ee937215..50acc1d2c 100644 --- a/templates/project.html +++ b/templates/project.html @@ -197,7 +197,15 @@

{{ poam_status_count.Open }}

- {{ percent_compliant_100|floatformat:2 }}% compliance (unassessed) + {{ percent_compliant_100|floatformat:2 }}% compliance (unassessed) +
+ + {% if impact_level %} + mission impact: {{ impact_level|lower }} + {% else %} + mission impact: not categorized + {% endif %} +