diff --git a/Makefile b/Makefile index 535ec866..31da179d 100644 --- a/Makefile +++ b/Makefile @@ -21,7 +21,7 @@ $(GOPATH)/bin/hound: ui/bindata.go $(SRCS) go install github.com/hound-search/hound/cmds/hound .build/bin/go-bindata: - GOPATH=`pwd`/.build go get github.com/go-bindata/go-bindata/... + GOPATH=`pwd`/.build go install github.com/go-bindata/go-bindata/... ui/bindata.go: .build/bin/go-bindata node_modules $(wildcard ui/assets/**/*) rsync -r ui/assets/* .build/ui @@ -37,7 +37,7 @@ test: lint: export GO111MODULE=on - go get github.com/golangci/golangci-lint/cmd/golangci-lint + go install github.com/golangci/golangci-lint/cmd/golangci-lint export GOPATH=/tmp/gopath export PATH=$GOPATH/bin:$PATH golangci-lint run ./... diff --git a/ui/assets/css/hound.css b/ui/assets/css/hound.css index d2de2569..2a9c1d81 100644 --- a/ui/assets/css/hound.css +++ b/ui/assets/css/hound.css @@ -219,6 +219,16 @@ button:focus { margin-right: 10px; } +#result > .actions { + padding: 5px 0 30px 0; +} + +#result > .actions > button { + margin: 2px; + float: right; + background-color: #f5f5f5; + color: #666; +} .repo { margin-bottom: 100px; } @@ -227,6 +237,7 @@ button:focus { color: #666; font-size: 24px; padding-bottom: 5px; + cursor: pointer; } .repo > .title > .name { @@ -238,6 +249,11 @@ button:focus { margin-right: 10px; } +.repo > .title > .indicator { + vertical-align: text-top; + padding-left: 10px; +} + .files > .moar { height: 55px; vertical-align: top; @@ -250,11 +266,16 @@ button:focus { border: 1px solid #d8d8d8; } +.file.closed { + margin: 10px 0 0 0; +} + .file > .title { padding: 10px 10px 10px 20px; display: block; line-height: 30px; background-color: #f5f5f5; + cursor: pointer; } .title a { @@ -266,6 +287,14 @@ button:focus { overflow: auto; } +.file.closed > .file-body { + display: none; +} + +.file.open > .file-boby { + display: block; +} + .match { border-bottom: 2px solid #f0f0f0; } diff --git a/ui/assets/images/favicon.png b/ui/assets/images/favicon.png new file mode 100644 index 00000000..585a1493 Binary files /dev/null and b/ui/assets/images/favicon.png differ diff --git a/ui/assets/index.tpl.html b/ui/assets/index.tpl.html index 028277cc..191e0710 100644 --- a/ui/assets/index.tpl.html +++ b/ui/assets/index.tpl.html @@ -4,6 +4,7 @@