Skip to content

Commit b0cc4a2

Browse files
committed
Move "Do another comparison" down.
The "Comparing..." heading is now at the top, which is the sensible place for it. Also, the "Do another comparison" label now makes sense, coming after the heading.
1 parent 8d0d570 commit b0cc4a2

File tree

1 file changed

+28
-28
lines changed

1 file changed

+28
-28
lines changed

site/static/compare.html

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,34 @@
1919
</div>
2020
<br />
2121
<div id="app">
22+
<h2>Comparing <span id="stat-header">{{stat}}</span> between <span id="before">{{before}}</span> and
23+
<span id="after">{{after}}</span>
24+
</h2>
25+
<div v-if="data" style="margin: 12px 0;">
26+
<div style="display: flex;justify-content: center;">
27+
<div class="description-box">
28+
<div v-if="data.prev" class="description-arrow"><a v-bind:href="prevLink">&larr;</a></div>
29+
<div style="padding: 10px;">
30+
<span><a v-if="data.a.pr" v-bind:href="prLink(data.a.pr)">#{{data.a.pr}}</a>&nbsp;</span>
31+
<span v-if="data.a.date">{{formatDate(data.a.date)}}</span>
32+
(<a v-bind:href="commitLink(data.a.commit)">{{short(data.a)}}</a>)
33+
</div>
34+
</div>
35+
<div v-if="notContinuous" id="not-continuous" title="WARNING! The commits are not continuous.">...
36+
</div>
37+
<div class="description-box">
38+
<div style="padding: 10px;">
39+
<span><a v-if="data.b.pr" v-bind:href="prLink(data.b.pr)">#{{data.b.pr}}</a>&nbsp;</span>
40+
<span v-if="data.b.date">{{formatDate(data.b.date)}}</span>
41+
(<a v-bind:href="commitLink(data.b.commit)">{{short(data.b)}}</a>)
42+
</div>
43+
<div v-if="data.next" class="description-arrow"><a v-bind:href="nextLink">&rarr;</a></div>
44+
</div>
45+
</div>
46+
<div style="display: flex; justify-content: center;">
47+
<a v-bind:href="compareLink">🔎 compare commits</a>
48+
</div>
49+
</div>
2250
<fieldset id="settings">
2351
<legend id="search-toggle" class="section-heading">Do another comparison<span
2452
class="toggle-indicator" id="search-toggle-indicator"></span></legend>
@@ -57,34 +85,6 @@
5785
<a :href="createUrlForMetric(metric[1])">{{ metric[0] }}</a>
5886
</div>
5987
</div>
60-
<h2>Comparing <span id="stat-header">{{stat}}</span> between <span id="before">{{before}}</span> and
61-
<span id="after">{{after}}</span>
62-
</h2>
63-
<div v-if="data" style="margin: 12px 0;">
64-
<div style="display: flex;justify-content: center;">
65-
<div class="description-box">
66-
<div v-if="data.prev" class="description-arrow"><a v-bind:href="prevLink">&larr;</a></div>
67-
<div style="padding: 10px;">
68-
<span><a v-if="data.a.pr" v-bind:href="prLink(data.a.pr)">#{{data.a.pr}}</a>&nbsp;</span>
69-
<span v-if="data.a.date">{{formatDate(data.a.date)}}</span>
70-
(<a v-bind:href="commitLink(data.a.commit)">{{short(data.a)}}</a>)
71-
</div>
72-
</div>
73-
<div v-if="notContinuous" id="not-continuous" title="WARNING! The commits are not continuous.">...
74-
</div>
75-
<div class="description-box">
76-
<div style="padding: 10px;">
77-
<span><a v-if="data.b.pr" v-bind:href="prLink(data.b.pr)">#{{data.b.pr}}</a>&nbsp;</span>
78-
<span v-if="data.b.date">{{formatDate(data.b.date)}}</span>
79-
(<a v-bind:href="commitLink(data.b.commit)">{{short(data.b)}}</a>)
80-
</div>
81-
<div v-if="data.next" class="description-arrow"><a v-bind:href="nextLink">&rarr;</a></div>
82-
</div>
83-
</div>
84-
<div style="display: flex; justify-content: center;">
85-
<a v-bind:href="compareLink">🔎 compare commits</a>
86-
</div>
87-
</div>
8888
<fieldset id="filters" class="collapsible-section">
8989
<legend id="filters-toggle" class="section-heading">Filters<span class="toggle-indicator" id="filters-toggle-indicator"></span>
9090
</legend>

0 commit comments

Comments
 (0)