Skip to content

Commit a958b64

Browse files
refactor(web): clean up
1 parent 611bd59 commit a958b64

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

internal/build/build.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ func (b Build) CommitURL() string {
1414
}
1515

1616
func (b Build) LicenseURL() string {
17-
return b.CommitURL() + "/LICENSE"
17+
return b.RepoURL + "/blob/master/LICENSE"
1818
}
1919

2020
var Current Build

web/src/uno.css

+2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

web/uno.config.ts

+1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ export default defineConfig({
2727
theme: {
2828
colors: {
2929
'pico': {
30+
'card': 'var(--card-background-color)',
3031
'background': 'var(--background-color)',
3132
}
3233
},

web/views/index.html

+5-4
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ <h2>Storage</h2>
1616
title="Rebuild database file to take the minimal amount of disk space.">
1717
Vacuum Database
1818
</button>
19-
<button hx-post="/trim" data-loading-path="/trim" data-loading-disable data-loading-aria-busy>
19+
<button hx-post="/trim" data-loading-path="/trim" data-loading-disable data-loading-aria-busy
20+
title="Apply retention policy against data.">
2021
Trim Data
2122
</button>
2223
<button hx-delete="/envelopes" data-loading-path="/envelopes" data-loading-disable data-loading-aria-busy
@@ -37,19 +38,19 @@ <h2>Retention Policy</h2>
3738
</tr>
3839
{{if not (eq .RetentionPolicy.EnvelopeCount nil)}}
3940
<tr>
40-
<th scope="row"><strong>Envelope Count</strong></th>
41+
<th scope="row"><strong>Total Envelope Count</strong></th>
4142
<td>{{.RetentionPolicy.EnvelopeCount}}</td>
4243
</tr>
4344
{{end}}
4445
{{if not (eq .RetentionPolicy.EnvelopeAge nil)}}
4546
<tr>
46-
<th scope="row"><strong>Envelope Age</strong></th>
47+
<th scope="row"><strong>Total Envelope Age</strong></th>
4748
<td>{{.RetentionPolicy.EnvelopeAge}}</td>
4849
</tr>
4950
{{end}}
5051
{{if not (eq .RetentionPolicy.AttachmentSize nil)}}
5152
<tr>
52-
<th scope="row"><strong>Attachment Size</strong></th>
53+
<th scope="row"><strong>Total Attachment Size</strong></th>
5354
<td>{{bytesHumanize .RetentionPolicy.AttachmentSize}}</td>
5455
</tr>
5556
{{end}}

web/views/p/attachment-card.html

+2-6
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,15 @@
11
{{if .IsImage}}
2-
<a href="/files/{{.FileName}}">
3-
<img src="/files/{{.FileName}}" alt="{{.FileName}}">
2+
<a href=" /files/{{.FileName}}" class="flex bg-pico-card shadow">
3+
<img src="/files/{{.FileName}}" alt="{{.FileName}}" class="mx-auto">
44
</a>
5-
{{else}}
6-
<h2>{{.Name}}</h2>
75
{{end}}
86

97
<div class="grid mt-2">
10-
{{if .IsImage}}
118
<div class="flex flex-items-center">
129
<b class="break-all">
1310
{{.Name}}
1411
</b>
1512
</div>
16-
{{end}}
1713
<nav>
1814
<ul></ul>
1915
<ul class="flex-wrap">

0 commit comments

Comments
 (0)