Explicitly render vulnerability details
This refactors the new `vulnerability-details` component to explicitly render the markup for the various details of the vulnerability, without going through an unnecessary transformation stage. This is preferable (though more verbose) because different details are rendered in different ways. Before, the template resembled the [loop-switch sequence][2] anti-pattern, and adding special cases was awkward. The snapshot changes in this commit are simply whitespace changes and added/missing HTML comments, resulting from the different conditional rendering logic. This addresses [issue 32039][1]. [1]: https://gitlab.com/gitlab-org/gitlab/issues/32039 [2]: https://en.wikipedia.org/wiki/Loop-switch_sequence
Showing
This diff is collapsed.
Please register or sign in to comment