File tree 4 files changed +12
-3
lines changed
4 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,9 @@ type Build struct {
5
5
Commit string
6
6
Date string
7
7
Version string
8
+ RepoURL string
8
9
}
9
10
10
11
var Current Build
12
+
13
+ var RepoURL string = "https://github.com/ItsNotGoodName/smtpbridge"
Original file line number Diff line number Diff line change @@ -6,11 +6,15 @@ import (
6
6
"io"
7
7
"time"
8
8
9
+ "github.com/ItsNotGoodName/smtpbridge/internal/build"
9
10
"github.com/ItsNotGoodName/smtpbridge/web"
10
11
"github.com/dustin/go-humanize"
11
12
)
12
13
13
14
var Map template.FuncMap = template.FuncMap {
15
+ "repoURL" : func () string {
16
+ return build .RepoURL
17
+ },
14
18
"development" : func () bool {
15
19
return web .Development
16
20
},
Original file line number Diff line number Diff line change @@ -32,7 +32,7 @@ <h2>Build</h2>
32
32
</ tr >
33
33
< tr >
34
34
< th scope ="row "> < strong > Commit</ strong > </ th >
35
- < td > {{ .Build.Commit}}</ td >
35
+ < td > < a href =" {{repoURL}}/tree/{{ .Build.Commit}}" > {{.Build.Commit}} </ a > </ td >
36
36
</ tr >
37
37
< tr >
38
38
< th scope ="row "> < strong > Date</ strong > </ th >
@@ -65,7 +65,7 @@ <h2>Retention Policy</h2>
65
65
</ tr >
66
66
{{end}}
67
67
< tr >
68
- < th scope ="row "> < strong > Min Envelope Age</ strong > </ th >
68
+ < th scope ="row "> < strong > Minimum Envelope Age</ strong > </ th >
69
69
< td > {{.RetentionPolicy.MinEnvelopeAge}}</ td >
70
70
</ tr >
71
71
{{if .RetentionPolicy.AttachmentSize}}
Original file line number Diff line number Diff line change 1
1
< footer class ="container ">
2
2
< small > Built with < a href ="https://picocss.com "> Pico</ a > •
3
- < a href ="https://github.com/ItsNotGoodName/smtpbridge "> Source code</ a > </ small >
3
+ < a href ="{{repoURL}} "> Source code</ a > •
4
+ < a href ="{{repoURL}}/blob/master/LICENSE "> License</ a >
5
+ </ small >
4
6
</ footer >
You can’t perform that action at this time.
0 commit comments