Skip to content

Commit

Permalink
chore: Merge pull request #85 from eventOneHQ/develop
Browse files Browse the repository at this point in the history
v2 Beta 2
  • Loading branch information
nprail authored Jan 28, 2022
2 parents 95d37ee + 2b08f18 commit 588b2bf
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions src/lib/reporter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,3 +102,7 @@ Handlebars.registerHelper(
'severityNumber',
(severity: string) => severityMap[severity]?.number
)

Handlebars.registerHelper('nameHandler', input => {
return input.replace('@', '').replace('/', '-')
})
8 changes: 4 additions & 4 deletions templates/template.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@
class="badge badge-{{severityClass severity}}">{{severity}}</span></td>
<td>
<a href="{{url}}" data-toggle="modal"
data-target="#advisory-modal-{{name}}">{{via.length}}</a>
data-target="#advisory-modal-{{nameHandler name}}">{{via.length}}</a>
</td>
</tr>
{{/each}}
Expand All @@ -220,7 +220,7 @@


{{#each vulnerabilities}}
<div class="modal" tabindex="-1" role="dialog" id="advisory-modal-{{name}}">
<div class="modal" tabindex="-1" role="dialog" id="advisory-modal-{{nameHandler name}}">
<div class="modal-dialog modal-lg" role="document">
<div class="modal-content">
<div class="modal-header">
Expand All @@ -242,7 +242,7 @@
</li>
{{else}}
<li>
<a href="{{url}}" data-toggle="modal" data-target="#advisory-modal-{{this}}"
<a href="{{url}}" data-toggle="modal" data-target="#advisory-modal-{{nameHandler this}}"
data-dismiss="modal">{{this}}</a>
</li>
{{/if}}
Expand Down Expand Up @@ -276,4 +276,4 @@
</script>
</body>

</html>
</html>

0 comments on commit 588b2bf

Please sign in to comment.