|
69 | 69 | #filters {
|
70 | 70 | border: 1px black;
|
71 | 71 | border-style: dotted;
|
72 |
| - margin: 16px 0px; |
| 72 | + margin: 12px 0px; |
73 | 73 | border-radius: 10px;
|
74 | 74 | }
|
75 | 75 |
|
|
141 | 141 | visibility: visible;
|
142 | 142 | opacity: 1;
|
143 | 143 | }
|
| 144 | + |
| 145 | + .description-box { |
| 146 | + border: 1px solid; |
| 147 | + display: flex; |
| 148 | + } |
| 149 | + |
| 150 | + .description-arrow { |
| 151 | + display: flex; |
| 152 | + flex-direction: column; |
| 153 | + justify-content: center; |
| 154 | + background: #8dcc8d; |
| 155 | + padding: 5px; |
| 156 | + } |
| 157 | + |
| 158 | + #not-continuous { |
| 159 | + display: flex; |
| 160 | + flex-direction: column; |
| 161 | + justify-content: center; |
| 162 | + text-align: center; |
| 163 | + background: #cc3300; |
| 164 | + border: 1px solid; |
| 165 | + cursor: help; |
| 166 | + } |
144 | 167 | </style>
|
145 | 168 | <script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
|
146 | 169 | </head>
|
@@ -180,6 +203,31 @@ <h1>Comparing <span id="stat-header">{{stat}}</span> between <span id="before">{
|
180 | 203 | </div>
|
181 | 204 | <input id="submit" type="submit" value="Submit" onclick="submitSettings(); return false;">
|
182 | 205 | </fieldset>
|
| 206 | + <div v-if="data" style="margin: 12px 0;"> |
| 207 | + <div style="display: flex;justify-content: center;"> |
| 208 | + <div class="description-box"> |
| 209 | + <div class="description-arrow"><a v-if="data.prev" v-bind:href="prevLink">←</a></div> |
| 210 | + <div style="padding: 10px;"> |
| 211 | + <a v-if="data.a.pr" v-bind:href="prLink(data.a.pr)">#{{data.a.pr}}</a> |
| 212 | + <span>{{formatDate(data.a.date)}}</span> |
| 213 | + (<a v-bind:href="commitLink(data.a.commit)">{{short(data.a)}}</a>) |
| 214 | + </div> |
| 215 | + </div> |
| 216 | + <div v-if="notContinuous" id="not-continuous" title="WARNING! The commits are not continuous.">... |
| 217 | + </div> |
| 218 | + <div class="description-box"> |
| 219 | + <div style="padding: 10px;"> |
| 220 | + <a v-if="data.b.pr" v-bind:href="prLink(data.b.pr)">#{{data.b.pr}}</a> |
| 221 | + <span>{{formatDate(data.b.date)}}</span> |
| 222 | + (<a v-bind:href="commitLink(data.b.commit)">{{short(data.b)}}</a>) |
| 223 | + </div> |
| 224 | + <div class="description-arrow"><a v-if="data.next" v-bind:href="nextLink">→</a></div> |
| 225 | + </div> |
| 226 | + </div> |
| 227 | + <div style="display: flex; justify-content: center;"> |
| 228 | + <a v-bind:href="compareLink">🔎 compare commits</a> |
| 229 | + </div> |
| 230 | + </div> |
183 | 231 | <fieldset id="filters">
|
184 | 232 | <legend id="filters-toggle" class="section-heading">Filters<span id="filters-toggle-indicator"></span>
|
185 | 233 | </legend>
|
@@ -234,40 +282,8 @@ <h1>Comparing <span id="stat-header">{{stat}}</span> between <span id="before">{
|
234 | 282 | </div>
|
235 | 283 | </div>
|
236 | 284 | </fieldset>
|
237 |
| - <div id="content" style="margin-top: 15px"> |
238 |
| - <table v-if="data" class="compare" style="font-size: medium !important;"> |
239 |
| - <thead> |
240 |
| - <tr> |
241 |
| - <td v-if="notContinuous" colspan="4" style="text-align:center;"><b>Warning</b>: The start and |
242 |
| - end |
243 |
| - are not adjacent!</td> |
244 |
| - </tr> |
245 |
| - <tr> |
246 |
| - <th> |
247 |
| - <a v-bind:href="compareLink">compare</a> |
248 |
| - </th> |
249 |
| - <th> |
250 |
| - <a v-if="data.prev" v-bind:href="prevLink">←</a> |
251 |
| - {{formatDate(data.a.date)}} |
252 |
| - (<a>{{short(data.a)}}</a>) |
253 |
| - </th> |
254 |
| - <th> |
255 |
| - {{formatDate(data.b.date)}} |
256 |
| - (<a>{{short(data.b)}}</a>) |
257 |
| - <a v-if="data.next" v-bind:href="nextLink">→</a> |
258 |
| - </th> |
259 |
| - <th>% change</th> |
260 |
| - </tr> |
261 |
| - <tr> |
262 |
| - <th></th> |
263 |
| - <th style="text-align: left;"><a v-if="data.a.pr" |
264 |
| - v-bind:href="prLink(data.a.pr)">#{{data.a.pr}}</a> |
265 |
| - </th> |
266 |
| - <th style="text-align: left;"><a v-if="data.b.pr" |
267 |
| - v-bind:href="prLink(data.b.pr)">#{{data.b.pr}}</a> |
268 |
| - </th> |
269 |
| - </tr> |
270 |
| - </thead> |
| 285 | + <div v-if="data" id="content" style="margin-top: 15px"> |
| 286 | + <table class="compare" style="width: 80%; margin: 0 auto; font-size: medium !important;"> |
271 | 287 | <tbody>
|
272 | 288 | <template v-for="bench in benches">
|
273 | 289 | <tr data-field-start="true">
|
@@ -504,6 +520,9 @@ <h1>Comparing <span id="stat-header">{{stat}}</span> between <span id="before">{
|
504 | 520 | percentLink(commit, baseCommit, bench, run) {
|
505 | 521 | return `/detailed-query.html?commit=${commit}&base_commit=${baseCommit}&benchmark=${bench}&run_name=${run}`;
|
506 | 522 | },
|
| 523 | + commitLink(commit) { |
| 524 | + return `https://github.com/rust-lang/rust/commit/${commit}`; |
| 525 | + }, |
507 | 526 | benchGroupToggle(e) {
|
508 | 527 | const element = e.target;
|
509 | 528 | toggleBenchGroup(element);
|
|
0 commit comments