Skip to content

Commit

Permalink
Show template title and STIG type
Browse files Browse the repository at this point in the history
  • Loading branch information
DaleBinghamSoteriaSoft committed Nov 6, 2023
1 parent 1506d92 commit 1ca0bd2
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions js/openrmf.js
Original file line number Diff line number Diff line change
Expand Up @@ -1392,8 +1392,10 @@ async function getChecklistData(id, template) {
else
$("#checklistTags").html("<b>Tags:</b> ");
$("#divMessaging").html(""); // clear this just in case

$("#checklistSTIGTitle").html("<b>Title:</b> " + data.checklist.stigs.iSTIG.stiG_INFO.sI_DATA[7].siD_DATA);
if (!template)
$("#checklistSTIGTitle").html("<b>Title:</b> " + data.checklist.stigs.iSTIG.stiG_INFO.sI_DATA[7].siD_DATA);
else
$("#checklistSTIGTitle").html("<b>Title:</b> " + data.title + " (" + data.checklist.stigs.iSTIG.stiG_INFO.sI_DATA[7].siD_DATA + ")");
$("#checklistSTIGReleaseInfo").html("<b>Release:</b> " + data.checklist.stigs.iSTIG.stiG_INFO.sI_DATA[6].siD_DATA.replace("Release: ",""));
$("#checklistSTIGVersionInfo").html("<b>Version:</b> " + data.checklist.stigs.iSTIG.stiG_INFO.sI_DATA[0].siD_DATA);
// template should use its uploaded description
Expand Down
2 changes: 1 addition & 1 deletion single-template.html
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
<div class="row">
<div class="col-xl-12">
<div class="breadcrumb-holder">
<h1 class="main-title float-left">My Template</h1>
<h1 class="main-title float-left">Checklist Template</h1>
<ol class="breadcrumb float-right">
<li class="breadcrumb-item">Home</li>
<li class="breadcrumb-item active">Checklist</li>
Expand Down

0 comments on commit 1ca0bd2

Please sign in to comment.