Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion utils/rendering/controls-template.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ <h2>{{{ control.id }}}: {{{ control.title }}}</h2>
{{%- endif -%}}
{{%- else %}}
{{%- if selection in rules %}}
<li><a href="https://github.com/ComplianceAsCode/content/tree/master/{{{ rules[selection].relative_definition_location }}}">{{{ selection }}}</a>: {{{ rules[selection].title }}}</li>
<li><a href="https://github.com/ComplianceAsCode/content/tree/master/{{{ rules[selection].relative_definition_location }}}"> {{{ selection }}}</a>: {{{ rules[selection].title }}}
<ul><li>{{{ rules[selection].identifiers['cce'] }}}</li></ul>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should add an if guard rules[selection].identifiers['cce'] so that if rule or product don't use CCE it doesn't leave a blank bullet point.

</li>
{{%- else %}}
<li>{{{ selection }}} - not available for this product</li>
{{%- endif -%}}
Expand Down
Loading