Skip to content

Commit a4b1632

Browse files
refactor(web): style clean up
1 parent f3799b4 commit a4b1632

File tree

2 files changed

+24
-25
lines changed

2 files changed

+24
-25
lines changed

web/uno.config.ts

-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ export default defineConfig({
1313
}
1414
}
1515
}],
16-
1716
],
1817
presets: [
1918
presetUno(),

web/views/index.html

+24-24
Original file line numberDiff line numberDiff line change
@@ -24,58 +24,58 @@ <h2>Storage</h2>
2424
</article>
2525

2626
<article>
27-
<h2>Build</h2>
27+
<h2>Retention Policy</h2>
2828
<figure>
2929
<table>
3030
<tbody>
31+
{{if .RetentionPolicy.EnvelopeCount}}
3132
<tr>
32-
<th scope="row"><strong>Built By</strong></th>
33-
<td>{{build.BuiltBy}}</td>
33+
<th scope="row"><strong>Envelope Count</strong></th>
34+
<td>{{.RetentionPolicy.EnvelopeCount}}</td>
3435
</tr>
36+
{{end}}
37+
{{if .RetentionPolicy.EnvelopeAge}}
3538
<tr>
36-
<th scope="row"><strong>Commit</strong></th>
37-
<td><a href="{{build.CommitURL}}">{{build.Commit}}</a></td>
39+
<th scope="row"><strong>Envelope Age</strong></th>
40+
<td>{{.RetentionPolicy.EnvelopeAge}}</td>
3841
</tr>
42+
{{end}}
3943
<tr>
40-
<th scope="row"><strong>Date</strong></th>
41-
<td>{{build.Date}}</td>
44+
<th scope="row"><strong>Minimum Envelope Age</strong></th>
45+
<td>{{.RetentionPolicy.MinEnvelopeAge}}</td>
4246
</tr>
47+
{{if .RetentionPolicy.AttachmentSize}}
4348
<tr>
44-
<th scope="row"><strong>Version</strong></th>
45-
<td>{{build.Version}}</td>
49+
<th scope="row"><strong>Attachment Size</strong></th>
50+
<td>{{bytesHumanize .RetentionPolicy.AttachmentSize}}</td>
4651
</tr>
52+
{{end}}
4753
</tbody>
4854
</table>
4955
</figure>
5056
</article>
5157

5258
<article>
53-
<h2>Retention Policy</h2>
59+
<h2>Build</h2>
5460
<figure>
5561
<table>
5662
<tbody>
57-
{{if .RetentionPolicy.EnvelopeCount}}
5863
<tr>
59-
<th scope="row"><strong>Envelope Count</strong></th>
60-
<td>{{.RetentionPolicy.EnvelopeCount}}</td>
64+
<th scope="row"><strong>Built By</strong></th>
65+
<td>{{build.BuiltBy}}</td>
6166
</tr>
62-
{{end}}
63-
{{if .RetentionPolicy.EnvelopeAge}}
6467
<tr>
65-
<th scope="row"><strong>Envelope Age</strong></th>
66-
<td>{{.RetentionPolicy.EnvelopeAge}}</td>
68+
<th scope="row"><strong>Commit</strong></th>
69+
<td><a href="{{build.CommitURL}}">{{build.Commit}}</a></td>
6770
</tr>
68-
{{end}}
6971
<tr>
70-
<th scope="row"><strong>Minimum Envelope Age</strong></th>
71-
<td>{{.RetentionPolicy.MinEnvelopeAge}}</td>
72+
<th scope="row"><strong>Date</strong></th>
73+
<td>{{build.Date}}</td>
7274
</tr>
73-
{{if .RetentionPolicy.AttachmentSize}}
7475
<tr>
75-
<th scope="row"><strong>Attachment Size</strong></th>
76-
<td>{{bytesHumanize .RetentionPolicy.AttachmentSize}}</td>
76+
<th scope="row"><strong>Version</strong></th>
77+
<td>{{build.Version}}</td>
7778
</tr>
78-
{{end}}
7979
</tbody>
8080
</table>
8181
</figure>

0 commit comments

Comments
 (0)