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 {
5757 return " " ;
5858}
5959
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+
6071loadStatusNew (loading );
6172 </script >
6273
@@ -83,9 +94,11 @@ loadStatusNew(loading);
8394 <tbody >
8495 <template v-for =" req in dataNew .timeline " >
8596 <tr >
86- <td v-html = " pullRequestUrlAsHtml( req.requestType) " ></td >
97+ <td >< PullRequestLink :requestType = " req.requestType" / ></td >
8798 <td >{{ req.requestType.type }}</td >
88- <td >{{ req.requestType.tag }}</td >
99+ <td >
100+ {{ req.requestType.tag }}
101+ </td >
89102 <td >{{ req.status.state }}</td >
90103 <td v-html =" getCreatedAt(req)" ></td >
91104 <td v-html =" getDuration(req)" ></td >
Original file line number Diff line number Diff line change 88 "esModuleInterop" : true ,
99 "jsx" : " preserve" ,
1010 "jsxFactory" : " h" ,
11+ "jsxImportSource" : " vue" ,
1112 "noUnusedLocals" : true ,
1213 "noUnusedParameters" : true
1314 }
You can’t perform that action at this time.
0 commit comments