diff --git a/infrastructure/code/code_html.go b/infrastructure/code/code_html.go
index e4f42b84d..63069a17f 100644
--- a/infrastructure/code/code_html.go
+++ b/infrastructure/code/code_html.go
@@ -52,7 +52,7 @@ type DataFlowItem struct {
type ExampleCommit struct {
CommitURL string
- IconSVG template.HTML
+ GitHubIcon template.HTML
RepoName string
RepoLink string
ExampleLines []ExampleLines
@@ -65,7 +65,7 @@ var globalTemplate *template.Template
func init() {
funcMap := template.FuncMap{
- "vendorIconSvg": getVendorIconSvg,
+ "githubIcon": getGitHubIconSvg,
"repoName": getRepoName,
"trimCWEPrefix": trimCWEPrefix,
"idxMinusOne": idxMinusOne,
@@ -106,6 +106,12 @@ func getCodeDetailsHtml(issue snyk.Issue) string {
"IgnoreLineAction": getLineToIgnoreAction(issue),
"HasAIFix": additionalData.HasAIFix,
"ExternalIcon": getExternalIconSvg(),
+ "ScanAnimation": getScanAnimationSvg(),
+ "GitHubIcon": getGitHubIconSvg(),
+ "ArrowLeftDark": getArrowLeftDarkSvg(),
+ "ArrowLeftLight": getArrowLeftLightSvg(),
+ "ArrowRightDark": getArrowRightDarkSvg(),
+ "ArrowRightLight": getArrowRightLightSvg(),
}
if issue.IsIgnored {
@@ -204,7 +210,7 @@ func prepareExampleCommitFixes(fixes []snyk.ExampleCommitFix) []ExampleCommit {
for _, fix := range fixes {
fixData = append(fixData, ExampleCommit{
CommitURL: fix.CommitURL,
- IconSVG: getVendorIconSvg(),
+ GitHubIcon: getGitHubIconSvg(),
RepoName: getRepoName(fix.CommitURL),
ExampleLines: prepareExampleLines(fix.Lines),
RepoLink: fix.CommitURL,
@@ -244,11 +250,10 @@ func formatDate(date time.Time) string {
}
func getExternalIconSvg() template.HTML {
- return template.HTML(` `)
+ return template.HTML(` `)
}
func getSeverityIconSvg(issue snyk.Issue) template.HTML {
@@ -278,7 +283,7 @@ func getSeverityIconSvg(issue snyk.Issue) template.HTML {
}
}
-func getVendorIconSvg() template.HTML {
+func getGitHubIconSvg() template.HTML {
return template.HTML(`