Skip to content

Commit

Permalink
Merge pull request #4329 from cisagov/bug/cpg-display
Browse files Browse the repository at this point in the history
  • Loading branch information
jekuipers authored Jan 8, 2025
2 parents 91cfde5 + 1c9a163 commit 78b4608
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,12 @@
<span [innerHTML]="q.securityPractice"></span>
</div>
</div>
<div class="text-end ms-4 font-weight-normal">
<span *ngFor="let c of q.csfMappings; let l = last" class="text-nowrap">
{{c}}{{ l ? '' : ', '}}
</span>
<div class="ms-4 font-weight-normal d-flex flex-wrap justify-content-end align-content-start">
<ng-content *ngFor="let c of q.csfMappings; let l = last">
<span class="text-nowrap">
{{c}}{{ l ? '' : ','}}
</span>&nbsp;
</ng-content>
</div>
</div>
</th>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ export class MyAssessmentsComponent implements OnInit {
* If it can't find a defintion, just use the selected model's title.
*/
getMaturityModelShortName(a: UserAssessment) {
const key = `${a.selectedMaturityModel.toLowerCase()}.model short title`;
const key = `modules.${a.selectedMaturityModel.toLowerCase()}.model short title`;
const val = this.tSvc.translate(key);
if (key == val) {
return a.selectedMaturityModel;
Expand Down
23 changes: 13 additions & 10 deletions CSETWebNg/src/assets/i18n/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -642,14 +642,6 @@
"perf by level desc": "The following chart(s) displays the percentage distribution of each response type by level."
}
},
"cmmc2": {
"model long title": "Cybersecurity Maturity Model Certification (CMMC) 2.0 DRAFT",
"model short title": "CMMC 2.0 DRAFT"
},
"cmmc2f": {
"model long title": "Cybersecurity Maturity Model Certification (CMMC) 2.0",
"model short title": "CMMC 2.0"
},
"filter-menu": {
"search": "Search",
"select deselect all": "Select/Deselect All",
Expand Down Expand Up @@ -1020,10 +1012,21 @@
},
"modules": {
"cpg": {
"display-name": "Cyber Performance Goals (CPG)"
"display-name": "Cyber Performance Goals (CPG)",
"model short title": "CPG 1.0"
},
"cpg2": {
"display-name": "Cyber Performance Goals (CPG) 2.0",
"model short title": "CPG 2.0 (draft)"
},
"cmmc2": {
"model long title": "Cybersecurity Maturity Model Certification (CMMC) 2.0 DRAFT",
"model short title": "CMMC 2.0 DRAFT"
},
"cmmc2f": {
"display-name": "Cybersecurity Maturity Model Certification (CMMC) 2.0"
"display-name": "Cybersecurity Maturity Model Certification (CMMC) 2.0",
"model long title": "Cybersecurity Maturity Model Certification (CMMC) 2.0",
"model short title": "CMMC 2.0"
},
"rra": {
"display-name": "Ransomware Readiness Assessment (RRA)"
Expand Down
40 changes: 40 additions & 0 deletions CSETWebNg/src/assets/settings/config.json
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,46 @@
}
]
},
{
"moduleName": "CPG2",
"modelId": "21",
"displayNameKey": "modules.cpg2.display-name",
"showDomainHeaders": false,
"autoLoadSupplemental": true,
"showMaturityLevelBadge": false,
"questionIcons": {
"showDetails": false,
"showReviewed": false
},
"answerOptions": [
{
"code": "Y",
"buttonLabelKey": "Imp-CPG",
"buttonCss": "btn-yes",
"chartSegmentColor": "#006000",
"consideredImplemented": true
},
{
"code": "I",
"buttonLabelKey": "Prog-CPG",
"buttonCss": "btn-na",
"chartSegmentColor": "#0a4b6e"
},
{
"code": "S",
"buttonLabelKey": "Scoped-CPG",
"buttonCss": "btn-alt",
"chartSegmentColor": "#b17300"
},
{
"code": "N",
"buttonLabelKey": "Not-CPG",
"buttonCss": "btn-no",
"chartSegmentColor": "#990000",
"consideredMissed": true
}
]
},
{
"moduleName": "SSG Chemical",
"modelId": "18",
Expand Down

0 comments on commit 78b4608

Please sign in to comment.