Skip to content

Commit

Permalink
Display compliance assessment authors and reviewers in html report
Browse files Browse the repository at this point in the history
  • Loading branch information
nas-tabchiche committed Feb 15, 2024
1 parent 1f06477 commit 4127d83
Showing 1 changed file with 20 additions and 3 deletions.
23 changes: 20 additions & 3 deletions backend/core/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -1379,9 +1379,7 @@ def bar_graph(node: RequirementNode):
<body class="container container-tablet">
"""
content += '<hr class="dotted">'
content += (
'<div class="flex flex-row space-x-4 flex justify-center items-center mb-4">'
)
content += '<div class="flex flex-row space-x-4 justify-center items-center mb-4">'
content += f"<h1 class='text-3xl'>{compliance_assessment.name}: {compliance_assessment.framework}</h1>"
content += bar_graph(None)
content += "</div>"
Expand All @@ -1390,6 +1388,25 @@ def bar_graph(node: RequirementNode):
</thead>
<tbody>
"""
content += '<div class="flex flex-row space-x-4 mb-4">'

content += "<div>"
content += "<p class='font-semibold'>Authors</p>"
content += "<ul>"
for author in compliance_assessment.authors.all():
content += f"<li>{author}</li>"
content += "</ul>"
content += "</div>"

content += "<div>"
content += "<p class='font-semibold'>Reviewers</p>"
content += "<ul>"
for reviewer in compliance_assessment.reviewers.all():
content += f"<li>{reviewer}</li>"
content += "</ul>"
content += "</div>"

content += "</div>"

def generate_html_rec(requirement_node: RequirementNode):
selected_evidences = []
Expand Down

0 comments on commit 4127d83

Please sign in to comment.