diff --git a/.goreleaser.yaml b/.goreleaser.yaml index 9adf43b..0b13275 100644 --- a/.goreleaser.yaml +++ b/.goreleaser.yaml @@ -1,18 +1,8 @@ -# This is an example .goreleaser.yml file with some sensible defaults. -# Make sure to check the documentation at https://goreleaser.com - -# The lines below are called `modelines`. See `:help modeline` -# Feel free to remove those if you don't want/need to use them. -# yaml-language-server: $schema=https://goreleaser.com/static/schema.json -# vim: set ts=2 sw=2 tw=0 fo=cnqoj - version: 2 before: hooks: - # You may remove this if you don't use go modules. - go mod tidy - # you may remove this if you don't need go generate - go generate ./... builds: @@ -27,7 +17,6 @@ builds: archives: - format: tar.gz - # this name template makes the OS and Arch compatible with the results of `uname`. name_template: >- {{ .ProjectName }}_ {{- title .Os }}_ @@ -35,7 +24,6 @@ archives: {{- else if eq .Arch "386" }}i386 {{- else }}{{ .Arch }}{{ end }} {{- if .Arm }}v{{ .Arm }}{{ end }} - # use zip for windows archives format_overrides: - goos: windows format: zip diff --git a/README.md b/README.md index d2a6952..84efb83 100644 --- a/README.md +++ b/README.md @@ -1 +1 @@ -# echoTest +# Englischnoten diff --git a/controllers/toggle.go b/controllers/toggle.go index 21df1f5..9baeb89 100644 --- a/controllers/toggle.go +++ b/controllers/toggle.go @@ -2,6 +2,7 @@ package controllers import ( "echoTest/models" + "echoTest/templates" "strconv" "github.com/labstack/echo/v4" @@ -17,5 +18,6 @@ func (c *Controller) ToggleWertungRoute(ctx echo.Context) error { break } } - return c.CreateBewertungNode(updatedBewertung).Render(ctx.Request().Context(), ctx.Response().Writer) + // return c.CreateBewertungNode(updatedBewertung).Render(ctx.Request().Context(), ctx.Response().Writer) + return templates.BewertungRow(updatedBewertung).Render(ctx.Request().Context(), ctx.Response().Writer) } diff --git a/templates/templates.templ b/templates/templates.templ index 183d764..537955c 100644 --- a/templates/templates.templ +++ b/templates/templates.templ @@ -8,85 +8,85 @@ import ( templ layout(title string) { - +