File tree Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Expand file tree Collapse file tree 2 files changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -57,6 +57,17 @@ function getDuration(request: BenchmarkRequest): string {
57
57
return " " ;
58
58
}
59
59
60
+ function PullRequestLink({requestType }: {requestType: BenchmarkRequestType }) {
61
+ if (requestType .type === ReleaseCommit ) {
62
+ return " " ;
63
+ }
64
+ return (
65
+ <a href = { ` https://github.com/rust-lang/rust/pull/${requestType .pr } ` } >
66
+ #{ requestType .pr }
67
+ </a >
68
+ );
69
+ }
70
+
60
71
loadStatusNew (loading );
61
72
</script >
62
73
@@ -83,9 +94,11 @@ loadStatusNew(loading);
83
94
<tbody >
84
95
<template v-for =" req in dataNew .timeline " >
85
96
<tr >
86
- <td v-html = " pullRequestUrlAsHtml( req.requestType) " ></td >
97
+ <td >< PullRequestLink :requestType = " req.requestType" / ></td >
87
98
<td >{{ req.requestType.type }}</td >
88
- <td >{{ req.requestType.tag }}</td >
99
+ <td >
100
+ {{ req.requestType.tag }}
101
+ </td >
89
102
<td >{{ req.status.state }}</td >
90
103
<td v-html =" getCreatedAt(req)" ></td >
91
104
<td v-html =" getDuration(req)" ></td >
Original file line number Diff line number Diff line change 8
8
"esModuleInterop" : true ,
9
9
"jsx" : " preserve" ,
10
10
"jsxFactory" : " h" ,
11
+ "jsxImportSource" : " vue" ,
11
12
"noUnusedLocals" : true ,
12
13
"noUnusedParameters" : true
13
14
}
You can’t perform that action at this time.
0 commit comments