Skip to content

Commit

Permalink
Add link to graphs (#4016)
Browse files Browse the repository at this point in the history
  • Loading branch information
soulgalore authored Nov 29, 2023
1 parent 5ef9145 commit 3d396b4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/plugins/compare/pug/index.pug
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
- const compare = pageInfo.data.compare.pageSummary;
- var createGraphLink = function(metricGroup, metricName) {
- return '#chart-' + metricGroup.replace(/\./g, '_') + '_' + metricName.replace(/\./g, '_');
- }

h1 Compare

Expand Down Expand Up @@ -58,7 +61,8 @@ table
each values, metricName in metricGroup
tr
td
b #{groupName + '.' + metricName}
a(href=createGraphLink(groupName, metricName))
b #{groupName + '.' + metricName}
if values.statisticalTestU === "N/A"
td N/A
else
Expand Down

0 comments on commit 3d396b4

Please sign in to comment.