remove revisioning from footer\

revisioning on footer was wrong because it would always have one revision less. From now on, it is the user's responsability to know when he have downloaded caddy (if downloaded from caddyserver.com) OR to know which revision he is in (if he built from source).
pull/144/head
Henrique Dias 2017-04-16 09:44:42 +01:00
parent 123ac96e1f
commit 7f95e5e6de
No known key found for this signature in database
GPG Key ID: 936F5EB68D786730
5 changed files with 3 additions and 15 deletions

View File

@ -264,6 +264,6 @@
</div>
</div>
<footer>Served with <a rel="noopener noreferrer" href="https://caddyserver.com">Caddy</a> and <a rel="noopener noreferrer" href="https://github.com/hacdias/caddy-filemanager">File Manager</a>. Revision {{ .Commit }}.</footer>
<footer>Served with <a rel="noopener noreferrer" href="https://caddyserver.com">Caddy</a> and <a rel="noopener noreferrer" href="https://github.com/hacdias/caddy-filemanager">File Manager</a>.</footer>
</body>
</html>

File diff suppressed because one or more lines are too long

View File

@ -34,11 +34,6 @@ type Info struct {
Token string
}
// Commit returns the current build commit
func (i *Info) Commit() string {
return GIT_COMMIT_HASH
}
// BreadcrumbMapItem ...
type BreadcrumbMapItem struct {
Name string

View File

@ -1,5 +0,0 @@
package page
var GIT_COMMIT_HASH = "2640977"
var CIRCLE_BUILD_NUM = ""
var GENERATED int64 = 1492331950511420300

View File

@ -1,11 +1,9 @@
#!/bin/sh
go get github.com/jteeuwen/go-bindata/go-bindata
go get github.com/bountylabs/gitversion
go-bindata -pkg assets -prefix "_embed" \
-o assets/binary.go -ignore "^.*theme-([^g]|g[^i]|gi[^t]|git[^h]|gith[^u]|githu[^b]).*\.js$" \
_embed/templates/... _embed/public/js/... _embed/public/css/... _embed/public/ace/src-min/...
gitversion -s -o page/version.go -p page
git add -A