Skip to content

Commit

Permalink
Merge pull request #174 from intuitem/hotfix/treatment-plan
Browse files Browse the repository at this point in the history
  • Loading branch information
Mohamed-Hacene authored Mar 27, 2024
2 parents e7e317f + 7c4351e commit 8a2d39a
Showing 1 changed file with 12 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,32 +22,34 @@
'on hold': 'bg-red-200',
done: 'bg-success-200'
};
if (treatment !== null){
if (treatment !== null) {
return map[treatment.toLowerCase()];
} else {
return 'bg-gray-200';
}
};
</script>

<div class="bg-white p-2 m-2 shadow rounded-lg space-x-2 flex flex-row justify-center">
<p class="font-semibold text-lg">
{m.domain()}: <a
{m.domain()}:
<a
class="unstyled text-primary-500 hover:text-primary-700 cursor-pointer"
href="/folders/{data.risk_assessment.folder.id}/">{data.risk_assessment.folder.name}</a
>
</p>
<p>/</p>
<p class="font-semibold text-lg">
{m.project()}: <a
{m.project()}:
<a
class="unstyled text-primary-500 hover:text-primary-700 cursor-pointer"
href="/projects/{data.risk_assessment.project.id}/">{data.risk_assessment.project.str}</a
>
</p>
<p>/</p>
<p class="font-semibold text-lg">
{m.riskAssessment()}: <a
{m.riskAssessment()}:
<a
class="unstyled text-primary-500 hover:text-primary-700 cursor-pointer"
href="/risk-assessments/{data.risk_assessment.id}/"
>{data.risk_assessment.name} - {data.risk_assessment.version}</a
Expand Down Expand Up @@ -106,7 +108,9 @@
<td class="px-2 py-3">{measure.name ?? '--'}</td>
<td class="px-2 py-3 max-w-md">{measure.description ?? '--'}</td>
<td class="px-2 py-3">{measure.type ?? '--'}</td>
<td class="px-2 py-3">{measure.reference_control.str ?? '--'}</td>
<td class="px-2 py-3"
>{measure.reference_control ? measure.reference_control.str : '--'}</td
>
<td class="px-2 py-3">{measure.eta ?? '--'}</td>
<td class="px-2 py-3">{measure.effort ?? '--'}</td>
<td class="px-2 py-3 text-center">{measure.link ?? '--'} </td>
Expand All @@ -125,7 +129,8 @@
{#if !scenario.existing_controls && !(scenario.applied_controls.length > 0)}
<tr>
<td colspan="9" class="p-2 text-left">
<i class="fas fa-exclamation-circle" /> {m.noAppliedControlYet()}
<i class="fas fa-exclamation-circle" />
{m.noAppliedControlYet()}
</td>
</tr>
{/if}
Expand Down

0 comments on commit 8a2d39a

Please sign in to comment.