Skip to content
Merged
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
6 changes: 5 additions & 1 deletion utils/rendering/controls-template.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,11 @@ <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 }}}
{{%- if rules[selection].identifiers and rules[selection].identifiers.get('cce') %}}
<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.

Copy link
Member Author

Choose a reason for hiding this comment

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

fixed.

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