Skip to content

Commit

Permalink
Fix nav bar
Browse files Browse the repository at this point in the history
  • Loading branch information
noqqe committed Feb 27, 2023
1 parent 6662a56 commit 4e82d6b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
7 changes: 6 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
FROM golang:1.20

WORKDIR /go/src/app
COPY . /go/src/app
COPY src /go/src/app/src
COPY templates /go/src/app/templates
COPY go.mod /go/src/app/go.mod
COPY go.sum /go/src/app/go.sum
COPY serra.go /go/src/app/serra.go


RUN go get -v ./...
RUN go build -ldflags "-X github.com/noqqe/serra/src/serra.Version=`git describe --tags`" -v serra.go
Expand Down
4 changes: 2 additions & 2 deletions Taskfile.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ tasks:
- read -p "Version v1.1.1 " version ; git tag $version
- git push --tags
- goreleaser release --clean
- docker build . -t docker.io/noqqe/serra:`git describe --tags`
- docker push docker.io/noqqe/serra:`git describe --tags`
- docker build . -t ghcr.io/noqqe/serra:`git describe --tags`
- docker push ghcr.io/noqqe/serra:`git describe --tags`

default:
cmds:
Expand Down
5 changes: 3 additions & 2 deletions templates/index.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
<select name="set" id="set" form="searchform">
<option></option>
{{range .sets}}
<option value="{{ index . "code" }}">{{ index . "_id" }} ({{ index . "count" }})</option>
<option value="{{ index . "code" }}">{{ printf "%.25s" (index . "_id") }} ({{ index . "count" }})</option>
{{end}}
</select>
</div>
Expand All @@ -59,7 +59,6 @@
</div>
</div>
</div>
</div>

<div class="level-item">
<div class="field">
Expand All @@ -76,6 +75,8 @@
</div>
</div>

</div>

<!-- Right side -->
<div class="level-right">
<form action="/" id="searchform">
Expand Down

0 comments on commit 4e82d6b

Please sign in to comment.